get.random.formula: Recovers random structure from a mixed model
Description
A helper function for sem.missing.paths
and sem.partial.resid
that retrives (and modifies) the proper random structure for a mixed model to be passed to update
.Usage
get.random.formula(model, rhs, modelList, dropterms)
Arguments
rhs
the fixed effects formula.
modelList
a list
of regressions representing the structural equation model.
dropterms
terms to be dropped from the random structure (optional).
Value
- Returns a character vector corresponding to the updated random structure.