Closed jbp7 closed 3 years ago
I tried to run the following code using the test dataset within the cobalt package:
cobalt
library("mice"); library("MatchThem") data("lalonde_mis", package = "cobalt") #Generate imputed data sets m <- 10 #number of imputed data sets imp.out <- mice(lalonde_mis, m = m, print = FALSE) #Matching for balance on covariates mt.out <- matchthem(treat ~ age + educ + married + race + re74 + re75, datasets = imp.out, approach = "within", method = "nearest", link = "logit", estimand = "ATT") bal.tab(mt.out)
However, I get the following error:
Error in imp.complete(mimids$others$source) : 'data' not of class 'mids'
Is there something I'm missing? I tried tracing the error but couldn't exactly find where the check happens for imp.complete.
Please update cobalt. This has been fixed in version 4.3.1.
I tried to run the following code using the test dataset within the
cobalt
package:However, I get the following error:
Error in imp.complete(mimids$others$source) : 'data' not of class 'mids'
Is there something I'm missing? I tried tracing the error but couldn't exactly find where the check happens for imp.complete.