Plot a Direction of Causation Model.
Summarize a fitted model returned by umxDoC()
. Can control digits, report comparison model fits,
optionally show the Rg (genetic and environmental correlations), and show confidence intervals. the report parameter allows
drawing the tables to a web browser where they may readily be pasted into, e.g. Word.
umxPlotDoC( x = NA, means = FALSE, std = TRUE, digits = 2, showFixed = TRUE, file = "name", format = c("current", "graphviz", "DiagrammeR"), SEstyle = FALSE, strip_zero = FALSE, ... )
x |
a |
means |
Whether to show means paths (defaults to FALSE) |
std |
Whether to standardize the model (defaults to TRUE) |
digits |
How many decimals to include in path loadings (defaults to 2) |
showFixed |
Whether to graph paths that are fixed but != 0 (default = TRUE) |
file |
The name of the dot file to write: NA = none; "name" = use the name of the model |
format |
= c("current", "graphviz", "DiagrammeR") |
SEstyle |
report "b (se)" instead of "b [lower, upper]" when CIs are found (Default FALSE) |
strip_zero |
Whether to strip the leading "0" and decimal point from parameter estimates (default = TRUE) |
... |
Other parameters to control model summary. |
See documentation for other umx models here: umxSummary()
.
Optionally return the dot code
Other Plotting functions:
plot.MxLISRELModel()
,
plot.MxModelTwinMaker()
,
plot.MxModel()
,
umxPlotACEcov()
,
umxPlotACEv()
,
umxPlotACE()
,
umxPlotCP()
,
umxPlotFun()
,
umxPlotGxEbiv()
,
umxPlotGxE()
,
umxPlotIP()
,
umxPlotSexLim()
,
umxPlotSimplex()
,
umx
## Not run: # ================ # = 1. Load Data = # ================ data(docData) mzData = subset(docData, zygosity %in% c("MZFF", "MZMM")) dzData = subset(docData, zygosity %in% c("DZFF", "DZMM")) # ======================================= # = 2. Define manifests for var 1 and 2 = # ======================================= var1 = paste0("varA", 1:3) var2 = paste0("varB", 1:3) # ======================================================= # = 2. Make the non-causal (Cholesky) and causal models = # ======================================================= Chol= umxDoC(var1= var1, var2= var2, mzData= mzData, dzData= dzData, causal= FALSE) DoC = umxDoC(var1= var1, var2= var2, mzData= mzData, dzData= dzData, causal= TRUE) # ================================================ # = Make the directional models by modifying DoC = # ================================================ a2b = umxModify(DoC, "a2b", free = TRUE, name = "A2B") plot(a2b) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.