effect_tabular {crosstable}R Documentation

Effect measure for association between two categorical variables

Description

User can either use or extend these functions to configure effect calculation.

Usage

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)

Arguments

x

categorical vector (character, factor, ...)

by

categorical vector (of exactly 2 unique levels)

conf_level

confidence interval level

Value

A list with five components: effect, ci, effect.name, effect.type, and conf_level

Functions

Author(s)

Dan Chaltiel, David Hajage

See Also

crosstable_effect_args()


[Package crosstable version 0.7.0 Index]