lod_cca {lodi} | R Documentation |
lod_cca is a helper function that does complete case analysis for single pollutant models. The function can be used to compare with clmi.
lod_cca(formula, df, type)
formula |
A R formula in the form outcome ~ exposure + covariates. |
df |
A data.frame that contains the variables |
type |
The type of regression to perform. Acceptable options are linear and logistic. |
library(lodi)
# load lodi's toy data
data("toy_data")
x <- lod_cca(case_cntrl ~ poll + smoking + gender, toy_data, logistic)
# see the fit model
x$model