Learn R Programming

umx (version 1.4.0)

umxExpMeans: umxExpMean

Description

Extract the expected means matrix from an mxModel

Usage

umxExpMeans(model, manifests = TRUE, latents = NULL, digits = NULL)

Arguments

model
an mxModel to get the means from
manifests
Whether to select the manifest variables (defaults to TRUE)
latents
Whether to select the latent variables (defaults to TRUE)
digits
precision of reporting. Default (NULL) will not round at all.

Value

- expected means

References

- http://openmx.psyc.virginia.edu/thread/2598

See Also

Other Reporting functions: RMSEA.MxModel, RMSEA.summary.mxmodel, RMSEA, confint.MxModel, extractAIC.MxModel, loadings, logLik.MxModel, plot.MxModel, residuals.MxModel, umxCI_boot, umxCI, umxCompare, umxExpCov, umxFitIndices, umxPlotACEcov, umxPlotACE, umxPlotCP, umxPlotGxE, umxPlotIP, umxSummary.MxModel, umxSummaryACE, umx_drop_ok, umx_standardize_RAM

Examples

Run this code
require(umx)
data(demoOneFactor)
latents  = c("G")
manifests = names(demoOneFactor)
m1 <- mxModel("One Factor", type = "RAM", 
	manifestVars = manifests, latentVars = latents, 
	mxPath(from = latents, to = manifests),
	mxPath(from = manifests, arrows = 2),
	mxPath(from = "one", to = manifests),
	mxPath(from = latents, arrows = 2, free = FALSE, values = 1.0),
	mxData(demoOneFactor[1:100,], type = "raw")
)
m1 = umxRun(m1, setLabels = TRUE, setValues = TRUE)
umxExpMeans(model = m1)
umxExpMeans(m1, digits = 3)

Run the code above in your browser using DataLab