Learn R Programming

umx (version 1.4.9)

mxSE: mxSE - Compute standard errors in OpenMx

Description

This function allows you to obtain standard errors for arbitrary expressions, named entities, and algebras.

Usage

mxSE(x, model, ...)

Arguments

x
the parameter to get SEs on (reference or expression)
model
the mxModel to use.
...
further named arguments passed to mxEval

Value

SE value(s) returned as a matrix.

Details

x can be the name of an algebra, a bracket address, named entity or arbitrary expression. It is a frontend-only file that works much like mxEval.

References

- https://en.wikipedia.org/wiki/Standard_error

See Also

- mxCI

Other Reporting Functions: loadings.MxModel, umxAPA, umxGetParameters, umxSummary, umx_APA_pval, umx_aggregate, umx_print, umx_show, umx_time, umx

Examples

Run this code
library(OpenMx)
data(demoOneFactor)
# ===============================
# = Make and run a 1-factor CFA =
# ===============================

latents  = c("G") # the latent factor
manifests = names(demoOneFactor) # manifest variables to be modeled
# ===========================
# = Make and run the model! =
# ===========================
m1 <- mxModel("One Factor", type = "RAM", 
	manifestVars = manifests, latentVars = latents, 
	mxPath(from = latents, to = manifests),
	mxPath(from = manifests, arrows = 2),
	mxPath(from = latents, arrows = 2, free = FALSE, values = 1),
	mxData(cov(demoOneFactor), type = "cov", numObs = 500)
)
m1 = mxRun(m1)
mxSE('A', model = m1)
mxSE((A + A) %*% S, model = m1)
mxSE(S, model = m1)
mxSE(A[1,2], model = m1)
mxSE(A[1,6]^2, model = m1)

Run the code above in your browser using DataLab