Learn R Programming

umx (version 1.7.5)

extractAIC.MxModel: extractAIC from MxModel

Description

Returns the AIC for an OpenMx model helper function for logLik.MxModel (which enables AIC(model); logLik(model); BIC(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

- http://openmx.ssri.psu.edu/thread/931#comment-4858

See Also

- AIC, umxCompare, logLik.MxModel

Other Reporting functions: RMSEA.MxModel, RMSEA.summary.mxmodel, RMSEA, confint.MxModel, loadings, logLik.MxModel, plot.MxModel, residuals.MxModel, umxCI_boot, umxCI, umxCompare, umxExpCov, umxExpMeans, umxFitIndices, umxPlotACEcov, umxPlotACE, umxPlotCP, umxPlotGxE, umxPlotIP, umxSummary.MxModel, umxSummaryACE, umx_drop_ok, umx_standardize_RAM

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
latents  = c("G")
manifests = names(demoOneFactor)
m1 <- umxRAM("One Factor", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500),
	umxPath(latents, to = manifests),
	umxPath(var = manifests),
	umxPath(var = latents, fixedAt = 1)
)
extractAIC(m1)
# -2.615998
AIC(m1)
# }

Run the code above in your browser using DataLab