Skip to content

Commit d139330

Browse files
committed
fix initMSM bug
was not checking variables from imputed data correctly
1 parent 25e9e11 commit d139330

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/initMSM.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
initMSM <- function(data, exposure, epoch = NULL, tv_conf, ti_conf = NULL,
5151
concur_conf = NULL, home_dir = NULL, sep = "[\\._]") {
5252
if (inherits(data, "mids")) {
53-
d <- data[[1]]
53+
d <- mice::complete(data, 1) #data[[1]]
5454
data_type <- "mids"
5555
} else if (is.data.frame(data)) {
5656
d <- data

0 commit comments

Comments
 (0)