powered by
'chest_clogit' is used to fit many Conditional Logistic Regression models to assess confounding effects.
'chest_clogit'
chest_clogit( crude, xlist, data, method = "exact", na_omit = TRUE, plus = " + ", indicate = FALSE, ... )
A table with effect estimates and their changes at all steps.
An object of formula for the initial model, generally crude model. However, any other variables can also be included here as the initial model.
A vector of characters with all variable names of potential confounders.
Data frame.
See 'clogit', default is the "exact" method.
Remove all missing values, default: 'na_omit = TRUE'.
Change the + sign before variable names.
+
indicate the calculation progress.
Further optional arguments.
chest
'clogit' in 'survival'
vlist <- c("Age", "Sex", "Married", "Cancer", "CVD", "Education", "Income") chest_clogit( crude = "Endpoint ~ Diabetes + strata(mid)", xlist = vlist, data = diab_df )
Run the code above in your browser using DataLab