Skip to content

Commit e232420

Browse files
20251210 - model-implied predictions
1 parent ad85356 commit e232420

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

multipleImputation.Rmd

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ library("miceadds")
3333
library("mitml")
3434
library("Amelia")
3535
library("jomo")
36-
library("parallely")
36+
library("parallelly")
3737
library("future")
3838
library("furrr")
3939
library("nlme")
@@ -497,6 +497,24 @@ fit_lmer_pooled
497497
summary(fit_lmer_pooled)
498498
```
499499

500+
# Model-Implied Predictions
501+
502+
```{r}
503+
mice::predict_mi(
504+
fit_lm,
505+
#newdata = # can include if want to make predictions based on another (i.e., "new") data object
506+
se.fit = TRUE,
507+
interval = c("prediction")
508+
)
509+
510+
mice::predict_mi(
511+
fit_lmer,
512+
#newdata = # can include if want to make predictions based on another (i.e., "new") data object
513+
se.fit = TRUE,
514+
interval = c("prediction")
515+
)
516+
```
517+
500518
# Resources
501519

502520
https://stefvanbuuren.name/fimd (archived at https://perma.cc/46U2-QTM6)

0 commit comments

Comments
 (0)