format estimated regression coefficients from a model.
It is common to present effects in terms of odds ratios,
prevalence ratios, or hazard ratios by applying the exponential
function (exp
) to the regression coefficients. It is also
common to present these ratios with 95
(i.e., conf_level = 0.95
) in model summary tables.
1 2 | fmt_effect(effect, std.error, transform = NULL, conf_level = NULL,
reference_index = NULL, reference_label = "1 (reference)")
|
effect |
a numeric vector of estimated regression coefficients |
std.error |
a numeric vector of standard error estimates corresponding
to the regression coefficients in the |
transform |
a function that will be applied to the values in |
conf_level |
(optional) the desired confidence level for interval
estimation. It is common to use |
reference_index |
(optional) If there is a referent group in the
|
reference_label |
(optional) a string indicating how the reference group will be labeled in representations of the model effects. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.