lod_cca {lodi} | R Documentation |
Single pollutant complete case analysis.
Description
lod_cca is a helper function that does complete case analysis for single pollutant models. The function can be used to compare with clmi.
Usage
lod_cca(formula, df, type)
Arguments
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. |
Examples
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
[Package lodi version 0.9.2 Index]