eq_mixed: build a formula for multilevel/mixed model based on lists of...

Description Usage Arguments Value

Description

eq_mixed build a formula for multilevel/mixed model

Usage

1
eq_mixed(dv, fev, rev, rec, correlated = TRUE, addcons = FALSE)

Arguments

dv

string containing the dependent variable name

fev

vector of strings containing variable names for fixed effects

rev

list of strings containing variable names for random effects. Each list entry sould be a string vector containing variables combined using the standard operators +,:,* and ^

rec

list of strings containing factor variable names for random effects. Each list entry sould be a single string containing factor variables combined using the standard operators +,:,*,^ and /

correlated

list of logicals - if TRUE the effects of re variables are modeled as correlated. FALSE is equivalent to the operator ||

addcons

logical, if TRUE add a constant term to the fixed effects. Overrides 0 and -1 in fev

Value

string


CraigMohn/REFormulate documentation built on May 30, 2019, 7:16 a.m.