umx (version 1.9.1)

umxDrop1: umxDrop1: Unfinished function to mimic drop1 in OpenMx

Description

Drops each free parameter (selected via regex), returning an mxCompare table comparing the effects. A great way to quickly determine which of several parameters can be dropped without excessive cost

Usage

umxDrop1(model, regex = NULL, maxP = 1)

Arguments

model

An mxModel to drop parameters from

regex

A string to select parameters to drop. leave empty to try all. This is regular expression enabled. i.e., "^a_" will drop parameters beginning with "a_"

maxP

The threshold for returning values (defaults to p==1 - all values)

Value

a table of model comparisons

References

- http://www.github.com/tbates/umx

See Also

Other Modify or Compare Models: umxAdd1, umxEquate, umxFixAll, umxMI, umxSetParameters, umxUnexplainedCausalNexus, umx

Examples

Run this code
# NOT RUN {
umxDrop1(fit3) # try dropping each free parameters (default)  
# drop "a_r1c1" and "a_r1c2" and see which matters more.
umxDrop1(model, regex="a_r1c1|a_r1c2")
# }

Run the code above in your browser using DataCamp Workspace