umx (version 1.9.1)

umxExpMeans: Extract the expected means matrix from an mxModel

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.ssri.psu.edu/thread/2598

See Also

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

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace