hi
open trunk/demo/DefinitionMeans_MatrixRaw.R
is broken
error = Running Definition Means -- Matrix Specification
Error: The thresholds matrix/algebra 'x' for model 'Definition Means -- Matrix Specification' does not exist.
be nice if that error was more helpful too: I can't figure it out: There are no thresholds, there is no algebra called "x", x is not used in any algebra, it's the name of a data column
#1
Hmmm. In Version 0.2.1-922
> source("DefinitionMeans_MatrixRaw.R")
Running Definition Means -- Matrix Specification
ObsCovs and Sigma are equal to within 0.01.
ObsMeansGroup1 and as.vector(M + beta) are equal to within 0.001.
ObsMeansGroup2 and as.vector(Mu) are equal to within 0.001.
Some symbol or version conflict?
Log in or register to post comments
#2
hmm... just svn'd
and did
rm(list = ls())
detach("package:OpenMx")
library(OpenMx)
and still get the same error. how odd.
Running Definition Means -- Matrix Specification
Error: The thresholds matrix/algebra 'x' for model 'Definition Means -- Matrix Specification' does not exist.
Log in or register to post comments
#3
I could run it fine from the command line, and it runs fine after quitting R and reloading. So closed...
I've got a feeling that releasing the OpenMx library and reloading leaves the old version loaded and a bit unstable. Still can't understand the nature of the error.
Safest to just quit and reload in between svn updates, i guess
Log in or register to post comments
#4
I see now that you can change the name of a definition variable to something that doesn't exist, and that runs fine: I think any label called "data.nnn" where nnn is not a valid column in the mxData should throw an error, shouldn't it?
model <- mxModel("Cov",
mxMatrix(type="Symm", nrow=2, ncol=2, free=TRUE, values=c(1, 0, 1), name = "Sigma"),
mxMatrix(type="Full", nrow=1, ncol=2, free=TRUE, name = "means"),
mxMatrix(type="Full", nrow=1, ncol=2, free=TRUE, values=c(0, 0), name = "beta"),
mxMatrix(type="Full", nrow=1, ncol=2, free=FALSE, labels=c("data.no_such_thing"), name = "def"),
mxAlgebra(expression=means+(beta*def), name = "Mu"),
mxFIMLObjective(covariance="Sigma", means="Mu", dimnames=selCovs),
mxData(observed=rawData, type="raw")
)
Log in or register to post comments
#5
Log in or register to post comments
#6
Added error checking. See models/passing/BogusDefinitionVariables.R (r943) for the error conditions.
Log in or register to post comments
#7
Thanks Michael ! Can I say too that the errors this generates are a model of clarity: Blind Freddy should be able to follow them (possibly an Australian-ism :-) )
Log in or register to post comments
#8
Automatically closed -- issue fixed for 2 weeks with no activity.
Log in or register to post comments