pool.clmi {lodi} | R Documentation |
clmi.out
objects using Rubin's rulesCalculate pooled estimates from clmi.out
objects using Rubin's rules
pool.clmi(formula, clmi.out, type)
formula |
Formula to fit. Exposure variable should end in
|
clmi.out |
An object generated by clmi. |
type |
Type of regression to pool. Valid types are logistic and linear. |
# continue example from clmi
# fit model on imputed data and pool results
library(lodi)
data("toy_data")
clmi.out <- clmi(log(poll) ~ case_cntrl + smoking + gender, toy_data, lod, 1)
results <- pool.clmi(case_cntrl ~ poll_transform_imputed + smoking, clmi.out,
logistic)
results$output