statsmodels.regression.mixed_linear_model.MixedLM.score#

MixedLM.score(params, profile_fe=True)[source]#

Return the score vector of the profile log-likelihood

Parameters:
paramsMixedLMParams, or array_like

The parameter value. If array-like, must be a packed parameter vector containing only the covariance parameters.

profile_febool

If True, replace the provided value of fe_params with the GLS estimates.

Returns:
ndarray

The score vector, evaluated at params.

Notes

The score vector that is returned is computed with respect to the parameterization defined by this model instance’s use_sqrt attribute.