tryFit: Fit model with error-trapping

Description Usage Arguments Value See Also Examples

Description

Try to fit an lmer model, catching any warnings about convergence

Usage

1
tryFit(tf.formula, tf.data, ...)

Arguments

tf.formula

The model formula

tf.data

The data frame

...

Arguments to be passed onto the fitting function lmer

Value

A list with:

value

fitted model object from lmer

converged

whether or not the model converged

See Also

tryUpdate

Examples

1
2
# random intercepts only
ff <- tryFit(Resp~Cond + (1+Cond|SubjID)+(1+Cond|ItemID), mkDf())

dalejbarr/simgen documentation built on May 14, 2019, 3:32 p.m.