effect_tabular | R Documentation |
User can either use or extend these functions to configure effect calculation.
effect_odds_ratio(x, by, conf_level = 0.95)
effect_relative_risk(x, by, conf_level = 0.95)
effect_risk_difference(x, by, conf_level = 0.95)
x |
categorical vector (character, factor, ...) |
by |
categorical vector (of exactly 2 unique levels) |
conf_level |
confidence interval level |
A list with five components: effect, ci, effect.name, effect.type, and conf_level
effect_odds_ratio()
: (Default) calculate the odds ratio
effect_relative_risk()
: calculate the relative risk
effect_risk_difference()
: calculate the risk difference
Dan Chaltiel, David Hajage
crosstable_effect_args()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.