OpenMx Error Messages

mxFactor command
I am trying to run a saturated model but there is something wrong in the way I have have ordered the variables, as I received this error message:
# Error: In model 'Sat' column 'dm1' is not an ordered factor. Use mxFactor() on this column.
So, I did the following after the reshape command:
TwDEP_DM <- reshape(DEP_DM, idvar = c("PAIRID", "ZYG"), timevar = "TVAB", direction = "wide")
colnames(TwDEP_DM) <- c('PAIRID', 'ZYG', 'dm1', 'dep1', 'age1','dm2', 'dep2', 'age2')
TwDEP_DM$dm1 <- mxFactor(TwDEP_DM$dm1, levels=c(0:2), ordered = TRUE)
- Read more about mxFactor command
- 5 comments
- Log in or register to post comments

Avoid default abort when error occurs
I am looking for a way to make it possible to make sure the loop will continue when one of the models is not returning a result (and of course, I would also like to save the non-result in some way).
- Read more about Avoid default abort when error occurs
- 3 comments
- Log in or register to post comments

Error in summary()
I created a model without any free parameters. I'd like to run the model to obtain the likelihood of some data under this model. The model runs fine but summary() returns the error that the comparison "matrix == nameA" is valid only for atomic and list. It seems that summary() is missing a check for empty lists of free parameters. This is the traceback():
8: eval(expr, envir, enclos)
7: eval(e, x, parent.frame())
6: subset.data.frame(ptable, matrix == nameA, select = "row", drop = TRUE)
5: subset(ptable, matrix == nameA, select = "row", drop = TRUE)
- Read more about Error in summary()
- 1 comment
- Log in or register to post comments

Error: The observed covariance matrix is not a symmetric matrix
Error: The observed covariance matrix is not a symmetric matrix
Below is the code. When looking at the cov matrix it looked quite summetrical to me...
Does somebody have suggestions?
Thanks a lot in advance.
obsnames = c("intrthought","recdreams","flashbk","emoreact","physreact","avoidthou","avoidremind","amnesia","lossinter","detach","restrAff","foreFut","SleepDis","Irritab","DifConcentr","Hypervigilance","ExaggStartle")
obslabels = list (obsnames,obsnames)
values = c(1.00,
.70, 1.00,

NPSOL returned a non-zero status code 6. The model does not satisfy the first-order optimality conditions to the required accur
Finally I managed to fit a longitudinal one- factor model but now I received the following warning message:
NPSOL returned a non-zero status code 6. The model does not satisfy the first-order optimality conditions to the required accuracy, and no improved point for the merit function could be found during the final linesearch (Mx status RED)
As I am a beginner in OpenMX suggestions and any help is very welcome.
Thanks in advance!
############################################################
This is my code:
############################################################

Error: unexpected ',' in "
I am getting a bit lost with the following error below. I frequently get it when runnning the specified data matrices. Sometimes the error pops up at different points. As I really cannot see any typos etc. I am starting to get quite annoyed about it.
Does somebody has any suggestions?
I would appreciate it very much!
Thanks already.
title = " Factor model Personality traits at 3 timepoints"
> obs = mxData(observed = akkercov, type = 'cov', means = petrmeans, numObs = 290)
> matrixL = mxMatrix(
+ type = 'Full',
+ nrow = 15,
+ ncol = 3,
+ free = (TRUE,FALSE,FALSE,
- Read more about Error: unexpected ',' in "
- 2 comments
- Log in or register to post comments

Error: The observed covariance matrix is not a positive-definite matrix
I want to fit a one fatcor longitudinal model at three measuremet time points based on an observed covariance/correlation matrix from an published article. Unfortunately I get the following error message when running the obs function, see below.
This is the error:
Error: The observed covariance matrix is not a positive-definite matrix
It would be great if somebody could help with some suggestions!
This is the beginning of the code:
## create observed covariance matrix
obsnames = c("extrT1","beneT1","conscT1","emostT1","imagT1",

Installing OpenMx on R 2.15
- Read more about Installing OpenMx on R 2.15
- 1 comment
- Log in or register to post comments

Troubles with OpenMx example
I have tried to run the code as documented here:
http://openmx.psyc.virginia.edu/svn/trunk/demo/UnivariateTwinAnalysis_MatrixRaw.R
Don't know why but I always get the following error message:
Error in mxModel("twinACE", mzModel, dzModel, mxAlgebra(expression = MZ.objective + :
could not find function "mxFitFunctionAlgebra"
Any idea what is wrong here? Many thanks in advance!
- Read more about Troubles with OpenMx example
- 1 comment
- Log in or register to post comments

Error when summary() applied to already-run mxModel using mxRObjective()
Error in match(x, table, nomatch = 0L) :
no slot of name "dims" for this object of class "MxRObjective"
--Rob K.
Pagination
- Previous page
- Page 5
- Next page