Hi
I just saw a small inconsistency... don't know if this forum categroy is the right one to report that? If one which one would be more appropriate?
It is just that when using mxPath() if length(labels ) is smaller than number of variables, not all variables will be estimated, while in the graph all will be shown, for example using the seminal example from start page:
mxPath(from=manifests, arrows=2, labels="a"),
Estimation will lead only one manifests (with arrow=2), while graph will show all. Maybe should a check be added to ensure consistency? Thanks!
For complete example:
data(demoOneFactor)
manifests <- names(demoOneFactor)
latents <- c("G")
factorModel1 <- mxModel("One Factor", type="RAM",
manifestVars = manifests,
latentVars = latents,
mxPath(from=latents, to=manifests),
mxPath(from=manifests, arrows=2, labels="a"),
mxPath(from=latents, arrows=2,
free=F, values=1.0),
mxData(cov(demoOneFactor), type="cov",
numObs=500))
summary(mxRun(factorModel1))
omxGraphviz(factorModel1)