Description Usage Arguments Value Examples
View source: R/model_variable_missingness.R
This function models missingness within a binary variable using logistic regression, adjusted for a specified list of confounders (only categorical variables are supported). It returns a structured output that can be directly tabulated. P values from Wald and Likelihood tests are also returned. Odds ratios are computed and presented with their 95 intervals.
1 2 |
df |
A dataframe containing cleaned ETS data as produced by |
var |
A character string indicating the name of the variable to explore missingness within. |
confounders |
A character vector containing the programmatic names of variables to use as confounders. All variables must be categorical. |
confounder_names |
A character vector containing presentation names of variables. If not supplied will default
to |
conf_int_sep |
A character string indicating the separator to use for confidence intervals |
A dataframe containing data and model estimates for the specified variable and confounders.
1 2 | ## Code
model_variable_missingness
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.