Learn R Programming

umx (version 1.3.0)

umxPlotACE: umxPlotACE

Description

Make a graphical display of an ACE model

Usage

umxPlotACE(x = NA, file = "name", digits = 2, means = FALSE, showMeans = NULL, std = TRUE, ...)

Arguments

x
mxModel to plot (created by umxACE in order to inherit the MxModel.ACE class)
file
The name of the dot file to write: NA = none; "name" = use the name of the model
digits
How many decimals to include in path loadings (default is 2)
means
Whether to show means paths (default is FALSE)
showMeans
Deprecated: just use 'means = ' for simplicity of typing.
std
Whether to standardize the model (default is TRUE)
...
Additional (optional) parameters

Value

- optionally return the dot code

References

- http://www.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, umxSummary.MxModel, umxSummaryACE, umx_drop_ok, umx_standardize_RAM

Examples

Run this code
require(umx)
data(twinData)
labList = c("MZFF", "MZMM", "DZFF", "DZMM", "DZOS")
twinData$ZYG = factor(twinData$zyg, levels = 1:5, labels = labList)
selDVs = c("bmi1", "bmi2")
mzData <- subset(twinData, ZYG == "MZFF", selDVs)
dzData <- subset(twinData, ZYG == "DZFF", selDVs)
m1 = umxACE(selDVs = selDVs, dzData = dzData, mzData = mzData)
plot(m1)
plot(m1, std = FALSE) # don't standardize

Run the code above in your browser using DataLab