File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ docs/site/
4
4
* .jl.cov
5
5
* .jl. * .cov
6
6
* .jl.mem
7
+ Manifest.toml
Original file line number Diff line number Diff line change 1
1
name = " StatsAPI"
2
2
uuid = " 82ae8749-77ed-4fe6-ae5f-f523153014b0"
3
3
authors = [
" Milan Bouchet-Valat <[email protected] " ]
4
- version = " 1.4 .0"
4
+ version = " 1.5 .0"
5
5
6
6
[deps ]
7
7
LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Original file line number Diff line number Diff line change @@ -114,6 +114,21 @@ function reconstruct! end
114
114
offset(model::RegressionModel)
115
115
116
116
Return the offset used in the model, i.e. the term added to the linear predictor with
117
- known coefficient 1.
117
+ known coefficient 1, or `nothing` if the model was not fit with an offset .
118
118
"""
119
119
function offset end
120
+
121
+ """
122
+ linearpredictor(model::RegressionModel)
123
+
124
+ Return the model's linear predictor, `Xβ` where `X` is the model matrix and `β` is the
125
+ vector of coefficients, or `Xβ + offset` if the model was fit with an offset.
126
+ """
127
+ function linearpredictor end
128
+
129
+ """
130
+ linearpredictor!(storage, model::RegressionModel)
131
+
132
+ In-place version of [`linearpredictor`](@ref), storing the result in `storage`.
133
+ """
134
+ function linearpredictor! end
You can’t perform that action at this time.
0 commit comments