mice package in R - error message

Receiving the following error message with the mice package -
data_mice <- mice(mi_long, m = 5, maxit = 10, meth = 'pmm', seed = 123)

Error in chol.default(sym(p$v)) :
the leading minor of order 12 is not positive

I just updated RStudio and am wondering if that' part of the problem?

Nope, it's likely the data giving rise to the error.

The mice() function is used for handling missing data by creating multiple imputations (replacement values) for multivariate missing data. See this from the documentation.. The error you're encountering could be due to a variety of reasons, non-numeric data in a column that was expected to be numeric, or issues with the specific imputation method being used.

In some cases, this error can be due to the model being overspecified. Overspecification occurs when a statistical model includes more parameters than can be justified by the data. This can lead to issues with multicollinearity, where one predictor variable in a multiple regression model can be linearly predicted from the others with a substantial degree of accuracy. You may need to simplify your model by removing some parameters

Also, ensure that the data is numeric where it needs to be, and that the imputation method being used is appropriate for your data.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.