the code below generates and estimates the variance and mean of one variable, and should make a diagram like this:
http://openmx.psyc.virginia.edu/docs/OpenMx/latest/TwoModelStylesTwoDataStyles.html#model-specification
http://openmx.psyc.virginia.edu/docs/OpenMx/latest/TwoModelStylesTwoDataStyles.html#model-specification
instead it generates an error
testData = as.matrix(rnorm (1000, 0, 1))
selVars c("X")
dimnames(testData) <- list(NULL, selVars)
univSatModel1 <- mxModel("univSat1", manifestVars= selVars,
mxPath(from="X", arrows=2, free=T, values=1, lbound=.01, labels="var X"),
mxData(observed=testData, type="raw"),
type="RAM"
)
fit = mxRun(univSatModel1)
omxGraphviz(fit)
# Error: mxPath() call will generate 0 paths but you have specified 1 arrows with 'from' argument assigned to and 'to' argument assigned to
#1
Log in or register to post comments
#2
The function is not drawing the means triangle, just the measured variable and variance (double-headed) arrow.
should be this:

not this

I guess too that the dot file should add the estimated values to the paths (something close to 1 on the var and zero on the triangle for the generated data)
Log in or register to post comments
#3
Log in or register to post comments
#4
/trunk/models/failing/omx_graphvis_example.R M 1 1 0.01635556 0.02262332
# summary(fit)
# name matrix row col Estimate Std.Error
# 1 var X S 1 1 0.99325690 0.03114318
# 2
Log in or register to post comments
#5
Log in or register to post comments
#6
Log in or register to post comments
#7
Log in or register to post comments
#8
Log in or register to post comments
#9
Log in or register to post comments