Learn R Programming

lodi (version 0.9.2)

lod_cca: 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 formula references.

type

The type of regression to perform. Acceptable options are linear and logistic.

Examples

Run this code
# 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