Skip to content

Commit 4af81b9

Browse files
ericqunalimilankleinschmidt
authored
add cooksdistance delegation for LinearModel (#221)
* add cooksdistance delegation for LinearModel add cooksdistance delegation for LinearModel in GLM.jl * Require StatsBase 0.33.5. * bump patch version Co-authored-by: Milan Bouchet-Valat <[email protected]> Co-authored-by: Dave Kleinschmidt <[email protected]>
1 parent 0d0c2bb commit 4af81b9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "StatsModels"
22
uuid = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
3-
version = "0.6.21"
3+
version = "0.6.22"
44

55
[deps]
66
DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
@@ -19,7 +19,7 @@ DataAPI = "1.1"
1919
DataFrames = "0.21"
2020
DataStructures = "0.17.0, 0.18"
2121
ShiftedArrays = "1.0.0"
22-
StatsBase = "0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33"
22+
StatsBase = "0.33.5"
2323
StatsFuns = "0.9"
2424
Tables = "0.2, 1"
2525
julia = "1"

src/statsmodel.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ const TableModels = Union{TableStatisticalModel, TableRegressionModel}
122122
StatsBase.stderror, StatsBase.vcov]
123123
@delegate TableRegressionModel.model [StatsBase.modelmatrix,
124124
StatsBase.residuals, StatsBase.response,
125-
StatsBase.predict, StatsBase.predict!]
125+
StatsBase.predict, StatsBase.predict!,
126+
StatsBase.cooksdistance]
126127
StatsBase.predict(m::TableRegressionModel, new_x::AbstractMatrix; kwargs...) =
127128
predict(m.model, new_x; kwargs...)
128129
# Need to define these manually because of ambiguity using @delegate

0 commit comments

Comments
 (0)