
Returns the AIC for an OpenMx model. Original Author: Brandmaier
# S3 method for MxModel
extractAIC(fit, scale, k, ...)
an fitted mxModel
from which to get the AIC
not used
not used
any other parameters (not used)
- AIC value
- AIC
, umxCompare
, logLik
Other Reporting functions: RMSEA.MxModel
,
RMSEA.summary.mxmodel
, RMSEA
,
loadings
, plot.MxModel
,
residuals.MxModel
,
umxCI_boot
, umxCI
,
umxCompare
, umxConfint
,
umxExpCov
, umxExpMeans
,
umxFitIndices
, umxPlotACEcov
,
umxPlotACEv
, umxPlotACE
,
umxPlotCP
, umxPlotGxE
,
umxPlotIP
,
umxSummary.MxModel
,
umxSummaryACEv
,
umxSummaryACE
, umx_drop_ok
,
umx_standardize_RAM
# 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