Learn R Programming

umx (version 1.4.0)

umxDiagnose: mxDiagnostic

Description

Diagnose problems in a model - this is a work in progress.

Usage

umxDiagnose(model, tryHard = FALSE, diagonalizeExpCov = FALSE)

Arguments

model
an mxModel to diagnose
tryHard
whether I should try and fix it? (defaults to FALSE)
diagonalizeExpCov
Whether to diagonalize the ExpCov

Value

- helpful messages and perhaps a modified model

References

- http://tbates.github.io, https://github.com/tbates/umx

See Also

Other Model Building Functions: umxLabel, umxLatent, umxMatrix, umxModify, umxPath, umxRAM2Ordinal, umxRAM, umxRun, umxThresholdMatrix, umxValues, umx_fix_first_loadings, umx_fix_latents, umx

Examples

Run this code
require(umx)
data(demoOneFactor)
latents  = c("G")
manifests = names(demoOneFactor)
myData = mxData(cov(demoOneFactor), type = "cov", numObs = 500)
m1 <- umxRAM("OneFactor", data = myData,
	umxPath(latents, to = manifests),
	umxPath(var = manifests),
	umxPath(var = latents, fixedAt = 1.0)
)
m1 = mxRun(m1)
umxSummary(m1, show = "std")
umxDiagnose(m1)

Run the code above in your browser using DataLab