tryUpdate: Update model with error-trapping

Description Usage Arguments Value See Also Examples

View source: R/general.R

Description

Try to update an lmer model, catching any errors/warnings

Usage

1
tryUpdate(tu.formula, tu.model, ...)

Arguments

...

Further arguments to be passed onto the function update

tf.formula

The model formula

tf.model

The data frame

Value

A list with:

value

fitted model object from lmer

converged

whether or not the model converged

See Also

tryFit

Examples

1
2
3
mod1 <- tryFit(Resp~Cond+(1+Cond|SubjID)+(1+Cond|ItemID), mkDf())
mod2 <- tryUpdate(.~.-Cond, mod1)
lrTest(mod1, mod2)

dalejbarr/simgen documentation built on Jan. 28, 2019, 7:43 p.m.