Issue with 'Number of Logged Events' in Multiple Imputation Using MICE Package #693
Unanswered
Isabella678
asked this question in
Getting started
Replies: 1 comment 1 reply
-
This is not really a software issue, so I transfer to discussion. The
Hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
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)
``
My understanding is that the 'out' column represents the predictor variables that are excluded during imputation. So, should these logged events be handled or not?
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