sandwich_ci: Takes a model fit and returns a data frame with variable,...

Description Usage Arguments Details Examples

View source: R/sandwich_ci.R

Description

Takes a model fit and returns a data frame with variable, estimate, CI, and N

Usage

1
2
sandwich_ci(fit, antilog = FALSE, data, vnames = "names",
  outcome = NULL, exposure = NULL)

Arguments

fit

model object

antilog

boolean, set to 'FALSE' for log scale or 'TRUE' for antilog scale

data

dataframe or datatable

vnames

character, set to '"labels"' to use variable labels rather than variable names in the output

outcome

character, outcome variable name

exposure

character, exposure variable name

Details

Returns a dataframe with variable, estimate, and CI information from model fit

Examples

1
2
3
# Not run:
# sandwich_ci(mod_obj, antilog = T, data = df, vnames = "labels")
# sandwich_ci(mod_obj, antilog = T, data = df, vnames = "labels", outcome = "flg_cmp_postop_ssi", exposure = "initial_approach")

thomasgstewart/ahsqc documentation built on Jan. 24, 2021, 11:19 a.m.