Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

odds_to_probs

Convert between Odds and Probabilities


Description

Convert between Odds and Probabilities

Usage

odds_to_probs(odds, log = FALSE, ...)

## S3 method for class 'data.frame'
odds_to_probs(odds, log = FALSE, select = NULL, exclude = NULL, ...)

probs_to_odds(probs, log = FALSE, ...)

## S3 method for class 'data.frame'
probs_to_odds(probs, log = FALSE, select = NULL, exclude = NULL, ...)

convert_odds_to_probs(odds, log = FALSE, ...)

convert_probs_to_odds(probs, log = FALSE, ...)

Arguments

odds

The Odds (or log(odds) when log = TRUE) to convert.

log

Take in or output log odds (such as in logistic models).

...

Arguments passed to or from other methods.

select

When a data frame is passed, character or list of of column names to be transformed.

exclude

When a data frame is passed, character or list of column names to be excluded from transformation.

probs

Probability values to convert.

Value

Converted index.

See Also

Other convert between effect sizes: d_to_common_language(), d_to_r(), eta2_to_f2(), oddsratio_to_riskratio()

Examples

odds_to_probs(3)
odds_to_probs(1.09, log = TRUE)

probs_to_odds(0.95)
probs_to_odds(0.95, log = TRUE)

effectsize

Indices of Effect Size and Standardized Parameters

v0.4.4-1
GPL-3
Authors
Mattan S. Ben-Shachar [aut, cre] (<https://orcid.org/0000-0002-4287-4801>), Dominique Makowski [aut] (<https://orcid.org/0000-0001-5375-9967>), Daniel Lüdecke [aut] (<https://orcid.org/0000-0002-8895-3206>), Indrajeet Patil [ctb] (<https://orcid.org/0000-0003-1995-6531>, @patilindrajeets), Ken Kelley [ctb], David Stanley [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.