Learn R Programming

umx (version 1.4.0)

umxDrop1: umxDrop1

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, umxGetParameters, 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")
# ## End(Not run)

Run the code above in your browser using DataLab