map2_get_regression | R Documentation |
This function genartes regression results with multiple outcomes and exposures. For now, it only supports the interaction between one covariable and the exposure.
map2_get_regression(
df,
outcomes,
exposures,
covariates,
outcome_type,
random_slope_var = NULL,
lme_method = "REML",
sub_var = NULL,
sub_group = NULL,
interaction_var = NULL,
multiply = T
)
df |
A tibble or dataframe of the data |
outcomes |
A character vector of outcomes |
exposures |
A character vector of exposures |
covariates |
A character vector of covariates |
outcome_type |
A string, can be one of these options:linear, binary, poisson, ordinal, tobit, normal_gee, binary_gee, poisson_gee, ordinal_gee, lme, logistic_glme |
sub_var |
A string of the subgroup analysis variable |
sub_group |
A string of the subgroup |
interaction_var |
a sting of the interaction covarite |
multiply |
logical, multiply = T specifies all possible combinations of outcomes and exposures |
A tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.