umx (version 1.9.1)

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

Description

The goal of this function is to diagnose problems in a model and return suggestions to the user. It is a work in progress, and probably is not of any use as yet.

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, umxReduceACE, umxReduceGxE, umxRun, umxSuperModel, 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