lod_cca: Single pollutant complete case analysis.

Description Usage Arguments Examples

View source: R/cca-r2.R

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

1

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

1
2
3
4
5
6
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

lodi documentation built on Feb. 7, 2020, 5:10 p.m.