View source: R/pool_comparisons.R
pool_comparisons | R Documentation |
test_predictions()
This function "pools" (i.e. combines) multiple ggcomparisons
objects, returned
by test_predictions()
, in a similar fashion as mice::pool()
.
pool_comparisons(x, ...)
x |
A list of |
... |
Currently not used. |
Averaging of parameters follows Rubin's rules (Rubin, 1987, p. 76).
A data frame with pooled comparisons or contrasts of predictions.
Rubin, D.B. (1987). Multiple Imputation for Nonresponse in Surveys. New York: John Wiley and Sons.
data("nhanes2", package = "mice")
imp <- mice::mice(nhanes2, printFlag = FALSE)
comparisons <- lapply(1:5, function(i) {
m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i))
test_predictions(m, "age")
})
pool_comparisons(comparisons)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.