Learn R Programming

dropR (version 1.0.3)

get_odds_ratio: Compute Odds Ratio

Description

Computes odds ratio given two probabilities. In this package, the function can be used to compare the percentages of remaining participants between two conditions at a time.

Usage

get_odds_ratio(a, b)

Value

Returns numerical vector of the same length as original input reflecting the Odds Ratio (OR).

Arguments

a

numeric probability value between 0 and 1.

b

numeric probability value between 0 and 1.

See Also

get_odds(), as this is the basis for calculation.

Examples

Run this code
get_odds_ratio(0.7, 0.6)

Run the code above in your browser using DataLab