Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

umxFixAll

umxFixAll: Fix all free parameters


Description

Fix all free parameters in a model using omxGetParameters()

Usage

umxFixAll(model, name = "_fixed", run = FALSE, verbose = FALSE)

Arguments

model

an mxModel() within which to fix free parameters

name

optional new name for the model. if you begin with a _ it will be made a suffix

run

whether to fix and re-run the model, or just return it (defaults to FALSE)

verbose

whether to mention how many paths were fixed (default is FALSE)

Value

References

See Also

Other Advanced Model Building Functions: umxAlgebra(), umxJiggle(), umxRun(), umxThresholdMatrix(), umxUnexplainedCausalNexus(), umx, xmuLabel(), xmuValues()

Examples

require(umx)
data(demoOneFactor)
manifests = names(demoOneFactor)

m1 = umxRAM("OneFactor", data = demoOneFactor, type = "cov",
	umxPath("G", to = manifests),
	umxPath(var = manifests),
	umxPath(var = "G", fixedAt = 1)
)
m2 = umxFixAll(m1, run = TRUE, verbose = TRUE)
mxCompare(m1, m2)

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.