Learn R Programming

umx (version 1.4.0)

umxFitIndices: umxFitIndices

Description

A list of fit indices. Originated in this thread: http://openmx.psyc.virginia.edu/thread/765 note: This is not a full-fat fit reporter. It is not robust across multi-group designs, definition variables. It is primarily designed to add less-often reported fit indices for RAM models where reviewer 2 wants something other than CFA/TLI/RMSEA :-).

Usage

umxFitIndices(model, refModels = mxRefModels(model, run = TRUE))

Arguments

model
The mxModel for which you want fit indices.
refModels
Independence and saturated models. default mxRefModels(model, run = TRUE)

Value

Table of fit statistics

References

-

See Also

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

Examples

Run this code
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)
)
umxFitIndices(m1)
# And with raw data
m1 <- umxRAM("m1", data = demoOneFactor,
	umxPath(latents, to = manifests),
	umxPath(v.m. = manifests),
	umxPath(v1m0 = latents)
)
umxFitIndices(m1)
umxAPA(umxFitIndices(m1), digits = 3)

Run the code above in your browser using DataLab