Learn R Programming

umx (version 1.4.0)

umx_drop_ok: umx_drop_ok

Description

Print a meaningful sentence about a model comparison. If you use this, please email me and ask to have it merged with umxCompare() :-)

Usage

umx_drop_ok(model1, model2, text = "parameter")

Arguments

model1
the base codemxModel
model2
the nested codemxModel
text
name of the thing being tested, i.e., "Extraversion" or "variances"

Value

-

References

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

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, umxFitIndices, umxPlotACEcov, umxPlotACE, umxPlotCP, umxPlotGxE, umxPlotIP, umxSummary.MxModel, umxSummaryACE, umx_standardize_RAM

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)
)
m2 = umxModify(m1, update = "g_to_x1", name = "no effect on x1")
umx_drop_ok(m1, m2, text = "the path to x1")

Run the code above in your browser using DataLab