statsmodels.regression.mixed_linear_model.VCSpec#

class statsmodels.regression.mixed_linear_model.VCSpec(names, colnames, mats)[source]#

Define the variance component structure of a multilevel model

Parameters:
nameslist[str]

names[k] is the name of variance component k.

colnameslist[list[list[str]]]

colnames[k][i] is the list of column names for mats[k][i].

matslist[list[array_like]]

mats[k][i] is the design matrix for group index i in variance component k.

Attributes:
nameslist[str]

names[k] is the name of variance component k.

matslist[list[array_like]]

mats[k][i] is the design matrix for group index i in variance component k.

colnameslist[list[list[str]]]

colnames[k][i] is the list of column names for mats[k][i].

Notes

The groups in colnames and mats must be in sorted order.

Methods