Learn R Programming

umx (version 1.7.5)

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 Core Modelling Functions: plot.MxModel, umxLatent, umxMatrix, umxPath, umxRAM, umxReduce, umxRun, umx

Examples

Run this code
# NOT RUN {
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