Learn R Programming

MMeM (version 0.1.1)

MMeM_terms: parses formulas to creates model matrices

Description

parses formulas to creates model matrices

Usage

MMeM_terms(fml, data, factor_X)

Arguments

fml

a two-sided linear formula object describing both the fixed-effects and random-effects parts of the model, with the response on the left of a ~ operator. For univariate response, put variable name directly; for multivariate responses combine variables using concatenate operator, for example, for bivariate responses, c(var1, var2). The predictor terms are separated by + operators, on the right. Random-effects terms are distinguished by vertical bars '|' separating expressions for design matrices from grouping factors.

data

data frame containing the variables named in formula.

factor_X

(logical) indicating whether predictor is a factor or continuous. By default is TRUE