powered by
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)
A R formula in the form outcome ~ exposure + covariates.
A data.frame that contains the variables formula references.
formula
The type of regression to perform. Acceptable options are linear and logistic.
# NOT RUN { 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 # }
Run the code above in your browser using DataLab