Estimate formulas for (co-)variance paths using Wright's path tracing rules
trace_path.RdThis function estimates the path from x to y using the path tracing rules.
Note that it only works with structural parameters, so "=~" are ignored, unless
measurement.model = TRUE.
If you want to use the measurement model,
"~" should be in the mod column of pt.
Usage
trace_path(
  pt,
  x,
  y,
  parenthesis = TRUE,
  missing.cov = FALSE,
  measurement.model = TRUE,
  maxlen = 100,
  paramCol = "mod",
  ...
)Arguments
- pt
 A data frame with columns
lhs,op,rhs, andmod, from modsemify- x
 Source variable
- y
 Destination variable
- parenthesis
 If
TRUE, the output will be enclosed in parenthesis- missing.cov
 If
TRUE, covariances missing from the model syntax will be added- measurement.model
 If
TRUE, the function will use the measurement model- maxlen
 Maximum length of a path before aborting
- paramCol
 The column name in
ptthat contains the parameter labels- ...
 Additional arguments passed to trace_path