You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a parameter is fixed to zero in lavaan by specifying the parameter and fixing it with 0*, lavaanToGraph reads that as though the parameter is estimated, and the independence is not coded. Example:
Sigma <- matrix(c(1, .5, .5, .5, 1, .5, .5, .5, 1), 3, 3)
colnames(Sigma) <- c("X", "M", "Y")
Model <- 'Y ~ M
M ~ X
X ~ 0*Y'
fitModel <- sem(model = Model, sample.cov = Sigma, sample.nobs = 100)
param <- parameterEstimates(fitModel)
dag <- lavaanToGraph(param)
plot(dag)
The text was updated successfully, but these errors were encountered:
If a parameter is fixed to zero in lavaan by specifying the parameter and fixing it with 0*, lavaanToGraph reads that as though the parameter is estimated, and the independence is not coded. Example:
The text was updated successfully, but these errors were encountered: