File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " StatsBase"
2
2
uuid = " 2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
3
3
authors = [" JuliaStats" ]
4
- version = " 0.33.4 "
4
+ version = " 0.33.5 "
5
5
6
6
[deps ]
7
7
DataAPI = " 9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ crossmodelmatrix
38
38
dof_residual
39
39
fitted
40
40
leverage
41
+ cooksdistance
41
42
meanresponse
42
43
modelmatrix
43
44
response
Original file line number Diff line number Diff line change @@ -353,6 +353,15 @@ Return the diagonal of the projection matrix of the model.
353
353
"""
354
354
leverage (model:: RegressionModel ) = error (" leverage is not defined for $(typeof (model)) ." )
355
355
356
+ """
357
+ cooksdistance(model::RegressionModel)
358
+
359
+ Compute [Cook's distance](https://en.wikipedia.org/wiki/Cook%27s_distance)
360
+ for each observation in linear model `model`, giving an estimate of the influence
361
+ of each data point.
362
+ """
363
+ cooksdistance (model:: RegressionModel ) = error (" cooksdistance is not defined for $(typeof (model)) ." )
364
+
356
365
"""
357
366
residuals(model::RegressionModel)
358
367
You can’t perform that action at this time.
0 commit comments