Issue with 'Number of Logged Events' in Multiple Imputation Using MICE Package #691
Replies: 1 comment
-
duplicate #692 Please do not duplicate issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am encountering the "Number of logged events" issue while performing multiple imputation using the
mice
package. I have tried using thequickpred()
function, but the problem persists.loggedEvents_test.csv
Let me provide a detailed description of my variables. The sample size is over 30,000, and there are 101 variables in total. The first three columns have been excluded. Among the remaining variables, 57 are binary (with imputation method specified as "logreg"), 7 are ordinal (with imputation method specified as "polr"), 3 are unordered categorical (with imputation method specified as "polyreg"), and 31 are numeric (with imputation method specified as "pmm"). The data has been factorized first, followed by specifying the imputation methods according to the data types. The following code is used for imputation:
``
col.methods[c("sfid", "father", "mother")] <- ""
predictors <- quickpred(data)
imputed_data <- mice(data,
method = col.methods,
predictorMatrix = predictors,
m = 1,
maxit = 2,
print = FALSE)
``
I would greatly appreciate any help you can offer. Looking forward to your response. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions