umx (version 1.9.1)

umx_fix_first_loadings: umx_fix_first_loadings

Description

Fix the loading of the first path from each latent at selected value. Note: latents with fixed variance are skipped.

Usage

umx_fix_first_loadings(model, latents = NULL, at = 1)

Arguments

model

An mxModel to set.

latents

Which latents to fix from (NULL = all).

at

The value to fix the first path at (Default = 1).

Value

- mxModel

References

- http://tbates.github.io, https://github.com/tbates/umx, http://openmx.ssri.psu.edu

See Also

Other Advanced Model Building Functions: umxJiggle, umxLabel, umxRAM2Ordinal, umxThresholdMatrix, umxValues, umx_fix_latents, umx

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
m1 <- mxModel("One Factor", type = "RAM",
 manifestVars = names(demoOneFactor),
 latentVars = "g",
	mxPath(from = "g", to = names(demoOneFactor)),
	mxPath(from = names(demoOneFactor), arrows = 2),
	mxData(cov(demoOneFactor), type = "cov", numObs = 500)
)
m1 = umx_fix_first_loadings(m1)
umx_show(m1) # path from g to var1 fixed @ 1.
# }

Run the code above in your browser using DataCamp Workspace