- LMGroup.coefficients_dataset(terms=None, long=False)
Regression coefficients in a
By default, each regression coefficient is assigned as separate column. With
long=True, a long form table is produced, in which the coefficients for different terms are stacked vertically and the
Factorspecifies which term the coefficients correspond to.
ds – If the dataset is in the wide form (default), each model coefficient is assigned as
NDVarwith a key corresponding to the
.column_keysattribute. If the dataset is in the long form (with
long=True), it has the following entries:
coeff: the coefficients in an
Factorwith the name of the term
In addition, all available subject-variables are assigned.
- Return type