# Error: The dataset associated with the RAM objective in model 'lebo1' does not contain identical row and column non-NULL dimname

2 posts / 0 new
Offline
Joined: 01/06/2010 - 19:29
Error: The dataset associated with the RAM objective in model 'lebo1' does not contain identical row and column non-NULL dimname
AttachmentSize
1.69 KB
1.24 KB

Hello ~
I am getting an error that others have posted when using mxMatrix specification. Since a mxObjective statement is not required with mxPath specification (type="RAM"), I am unsure how to solve the problem. I have attached the script and data that are associated with the error. When I check rownames(), colnames(), and manifestVars names in R, I get the same list for each case.

Any thoughts?

Sincerely,
~ Angela

Offline
Joined: 07/31/2009 - 15:24
Very interesting bug. At

Very interesting bug. At some point when processing a MxModel, we added a step that converts all the columns of a data.frame into numeric columns. At is happens, that step drops the rownames of a data.frame. Usually, that isn't a problem. But if your covariance matrix is a data.frame object, then it is problem. I'm going to check in a patch that preserves the rownames of a data.frame. In the meantime, use the following to read your data:

lebo1Data <- as.matrix(read.csv("lebo1Datacov.csv"))