eelbrain.testnd.LMGroup.coefficients_dataset
- LMGroup.coefficients_dataset(terms=None, long=False)
Regression coefficients in a
DatasetBy 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 thetermFactorspecifies which term the coefficients correspond to.- Parameters:
- Returns:
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 (withlong=True), it has the following entries:coeff: the coefficients in anNDVarterm: aFactorwith the name of the term
In addition, all available subject-variables are assigned.
- Return type: