Skip to content

Commit d02b313

Browse files
authored
add docstring for MixedModel supertype that points to concrete terms (#272)
1 parent 1c06896 commit d02b313

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/MixedModels.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@ export @formula,
109109

110110
import Base: ==, *
111111

112+
"""
113+
MixedModel
114+
115+
Abstract type for mixed models. MixedModels.jl implements two subtypes:
116+
`LinearMixedModel` and `GeneralizedLinearMixedModel`. See the documentation for
117+
each for more details.
118+
119+
This type is primarily used for dispatch in `fit`. Without a distribution and
120+
link function specified, a `LinearMixedModel` will be fit. When a
121+
distribution/link function is provided, a `GeneralizedLinearModel` is fit,
122+
unless that distribution is `Normal` and the link is `IdentityLink`, in which
123+
case the resulting GLMM would be equivalent to a `LinearMixedModel` anyway and
124+
so the simpler, equivalent `LinearMixedModel` will be fit instead.
125+
"""
112126
abstract type MixedModel{T} <: StatsModels.RegressionModel end # model with fixed and random effects
113127

114128
function __init__()

0 commit comments

Comments
 (0)