pool.clmi {lodi} | R Documentation |
Calculate pooled estimates from clmi.out
objects using Rubin's rules
Description
Calculate pooled estimates from clmi.out
objects using Rubin's rules
Usage
pool.clmi(formula, clmi.out, type)
Arguments
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. |
Examples
# 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
[Package lodi version 0.9.2 Index]