Estimate formulas for (co-)variance paths using Wright's path tracing rules
Source:R/trace_paths_wright.R
trace_path.Rd
This 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. you want to use the measurement model, "~" in the mod column of pt.
Usage
trace_path(
pt,
x,
y,
parenthesis = TRUE,
missing.cov = FALSE,
measurement.model = FALSE,
maxlen = 100,
...
)
Arguments
- pt
A data frame with columns lhs, op, rhs, and mod, from modsemify(syntax)
- 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
- ...
additional arguments passed to trace_path