makeDiagram: Make diagram euation

View source: R/semDiagram.R

makeDiagramR Documentation

Make diagram euation

Description

Make diagram euation

Usage

makeDiagram(
  fit,
  labels = NULL,
  graphOptions = list(rankdir = "LR", ranksep = "0.75", nodesep = "0.25", overlap =
    "true", fontsize = "10"),
  nodeOptions = list(),
  edgeOptions = list(color = "black"),
  whatLabels = "std",
  mediationOnly = FALSE,
  regression = TRUE,
  indirect = FALSE,
  secondIndirect = FALSE,
  total = FALSE,
  residuals = FALSE
)

Arguments

fit

A data.frame. Result of parameterEstimates function of package lavaan

labels

An optional named list of variable labels fit object of class lavaan

graphOptions

A named list of graph options for Diagrammer syntax

nodeOptions

A named list of node options for Diagrammer syntax

edgeOptions

A named list of edge options for Diagrammer syntax.

whatLabels

What should the edge labels indicate in the path diagram? Choices are c("est","std","name").

mediationOnly

Whether or not draw mediation effect only. Default value is FALSE.

regression

Whether or not draw regression. Default value is TRUE.

indirect

Whether or not draw indirect effects. Default value is FALSE.

secondIndirect

Whether or not draw 2nd indirect effects. Default value is FALSE.

total

Whether or not draw total effect. Default value is FALSE.

residuals

Logical, should residuals (and variances) be included in the path diagram?


cardiomoon/semMediation documentation built on Nov. 16, 2023, 4:26 a.m.