brainstat.stats.terms

Classes for fixed, mixed, and random effects.

Functions

check_categorical_variables(x[, names])

Checks whether categorical variables were provided as such.

check_duplicate_names(df1[, df2])

Check columns with duplicate names.

check_names(x)

Return True if x is FixedEffect, Series or DataFrame.

get_index(df)

Get index for column names of the form x{i}.

remove_duplicate_columns(df[, tol])

Remove duplicate columns.

remove_identical_columns(df1, df2)

Remove columns with duplicate names across dataframes.

to_df(x[, n, names, idx])

Convert input to DataFrame.

Classes

FixedEffect([x, names, add_intercept, …])

Build a term object for a linear model.

MixedEffect([ran, fix, name_ran, name_fix, …])

Build a random term object for a linear model.