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

umxExpCov

Get the expected vcov matrix


Description

Extract the expected covariance matrix from an mxModel()

Usage

umxExpCov(object, latents = FALSE, manifests = TRUE, digits = NULL, ...)

Arguments

object

an mxModel() to get the covariance matrix from

latents

Whether to select the latent variables (defaults to TRUE)

manifests

Whether to select the manifest variables (defaults to TRUE)

digits

precision of reporting. NULL (Default) = no rounding.

...

extra parameters (to match vcov())

Value

  • expected covariance matrix

References

See Also

Examples

require(umx)
data(demoOneFactor)
manifests = names(demoOneFactor)
m1 = umxRAM("One Factor", data = demoOneFactor, type = "cov",
	umxPath("G", to = manifests),
	umxPath(var = manifests),
	umxPath(var = "G", fixedAt = 1)
)#'
vcov(m1) # supplied by OpenMx
umxExpCov(m1, digits = 3)

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.