rerun: Rerun models via mxTryHard()

View source: R/rerun.R

rerunR Documentation

Rerun models via mxTryHard()

Description

It reruns models via mxTryHard().

Usage

rerun(object, autofixtau2=FALSE, extraTries=10, ...)

Arguments

object

An object of either class tssem1FEM, class tssem1REM, class wls, class meta, class reml, class osmasem, class osmasem3L, and class MxModel.

autofixtau2

Logical. Whether automatically fixes elements of tau2 with NA of standard errors. It only works for objects of class tssem1REM, class meta, and class osmasem.

extraTries

The number of attempts to run the model in addition to the first.

...

Further arguments to be passed to mxTryHard

Author(s)

Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>

Examples

## Not run: 
random1 <- tssem1(Digman97$data, Digman97$n, method="REM", RE.type="Diag")
random1_rerun <- rerun(random1)
summary(random1_rerun)

## End(Not run)

metaSEM documentation built on Aug. 10, 2023, 1:09 a.m.