Error in check.dataform(data) : Cannot handle columns with class matrix: #363
Replies: 7 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks. I fixed the final few columns that were causing that. I now have this error:
I did some googling but couldn't find the same issue. It seems that it wants me to use lapply and that it thinks this is a list, but there should only be a matrix, correct? It's odd because when I don't add the final 8 variables (which have collinearity), I don't receive this warning. |
Beta Was this translation helpful? Give feedback.
-
I have no idea where this comes from. I'd be happy to take a look at a reproducible example. For now, I would suggest deleting |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks. I've included the dput and the matrix above. I thought that would be enough for a reproducible example. Is there more you need? |
Beta Was this translation helpful? Give feedback.
-
Yes, a smaller example. There's a lot going on in your data. There are matrices, text variables, and so on, that all could cause a problems. There is a row in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Great that you managed to get by. Simplying often solves the problem. You might find https://reprex.tidyverse.org/articles/reprex-dos-and-donts.html helpful. For your problem, I would do some more iterations (10-20) to see chain covergence Two won't work. You could perhaps also consider a simpler model with fixed effects if you have a reasonable number of observations per class. |
Beta Was this translation helpful? Give feedback.
-
Hi, I posted a longer question here: https://stackoverflow.com/questions/62136918/imputing-longitudinal-covariates-with-mice-using-2l-norm, but I'm not sure if you have time to answer it.
However, when I try to use the script remove.collinear = False, I get the following error:
Any help you could give would be appreciated!
Thanks much,
James
This is my prediction matrix
and a dput()
Beta Was this translation helpful? Give feedback.
All reactions