RMSEA.MxModel: RMSEA function for MxModels

RMSEA.MxModelR Documentation

RMSEA function for MxModels

Description

Return RMSEA and its confidence interval on a model. RMSEA(tmp, silent=TRUE)$RMSEA

Usage

## S3 method for class 'MxModel'
RMSEA(x, ci.lower = 0.025, ci.upper = 0.975, digits = 3)

Arguments

x

an OpenMx::mxModel() from which to get RMSEA

ci.lower

the lower CI to compute (only 95%, i.e., .025 supported)

ci.upper

the upper CI to compute (only 95%, i.e., .975 supported)

digits

digits to show (default = 3)

Value

  • object containing the RMSEA, lower and upper bounds, and p-close

References

See Also

Other Reporting functions: RMSEA(), RMSEA.summary.mxmodel(), extractAIC.MxModel(), loadings(), loadings.MxModel(), residuals.MxModel(), tmx_show(), tmx_show.MxMatrix(), umxCI(), umxCI_boot(), umxConfint(), umxExpCov(), umxExpMeans(), umxFitIndices(), umxRotate()

Examples

## Not run: 
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)
)
RMSEA(m1)

x = RMSEA(m1)
x$RMSEA # 0.0309761

# Raw: needs to be run by umx to get RMSEA
m2 = umxRAM("One Factor", data = demoOneFactor,
	umxPath("G", to = manifests),
	umxPath(v.m. = manifests),
	umxPath(v1m0 = "G")
)
RMSEA(m2)

## End(Not run)

tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.