Learn R Programming

umx (version 4.0.0)

extractAIC.MxModel: Extract AIC from MxModel

Description

Returns the AIC for an OpenMx model. Original Author: Brandmaier

Usage

# S3 method for MxModel
extractAIC(fit, scale, k, ...)

Arguments

fit

an fitted mxModel() from which to get the AIC

scale

not used

k

not used

...

any other parameters (not used)

Value

  • AIC value

References

See Also

Other Reporting functions: RMSEA.MxModel(), RMSEA.summary.mxmodel(), RMSEA(), loadings(), residuals.MxModel(), umxCI_boot(), umxCI(), umxCompare(), umxConfint(), umxExpCov(), umxExpMeans(), umxFitIndices(), umxPlotACEv(), umxRotate(), umxSummary.MxModel()

Examples

Run this code
# 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)
)
extractAIC(m1)
# -2.615998
AIC(m1)
# }

Run the code above in your browser using DataLab