I wonder if there is a way to selectively show a single indicator in the structural part of the model while hiding the measurement part. Here is an example:
library(lavaan)
library(semPlot)
model <- "
lv1 =~ mpg + cyl + wt
lv2 =~ am + vs + gear
drat ~ lv1
lv2 ~ drat
"
fit <- sem(model, data = mtcars)
semPaths(fit)
I'd like to hide the manifest variables but keep drat in the plot. Using structural=T would remove drat from the plot.
Hello!
I wonder if there is a way to selectively show a single indicator in the structural part of the model while hiding the measurement part. Here is an example:
I'd like to hide the manifest variables but keep
drat
in the plot. Usingstructural=T
would removedrat
from the plot.Thank you! Han