chest_clogit | R Documentation |
'chest_clogit'
is used to fit many Conditional Logistic Regression
models to assess confounding effects.
chest_clogit(
crude,
xlist,
data,
method = "exact",
na_omit = TRUE,
plus = " + ",
indicate = FALSE,
...
)
crude |
An object of formula for the initial model, generally crude model. However, any other variables can also be included here as the initial model. |
xlist |
A vector of characters with all variable names of potential confounders. |
data |
Data frame. |
method |
See 'clogit', default is the "exact" method. |
na_omit |
Remove all missing values, default: 'na_omit = TRUE'. |
plus |
Change the |
indicate |
indicate the calculation progress. |
... |
Further optional arguments. |
A table with effect estimates and their changes at all steps.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.