statsmodels.regression.mixed_linear_model.MixedLM.get_scale¶
method
-
MixedLM.
get_scale
(fe_params, cov_re, vcomp)[source]¶ Returns the estimated error variance based on given estimates of the slopes and random effects covariance matrix.
- Parameters
- fe_paramsarray-like
The regression slope estimates
- cov_re2d array-like
Estimate of the random effects covariance matrix
- vcomparray-like
Estimate of the variance components
- Returns
- scalefloat
The estimated error variance.