odds_to_probs: Convert between Odds and Probabilities

Description Usage Arguments Value See Also Examples

View source: R/convert_between_odds_to_probs.R

Description

Convert between Odds and Probabilities

Usage

1
2
3
4
5
6
7
8
9
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, ...)

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

stats::plogis()

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

Examples

1
2
3
4
5

effectsize documentation built on Oct. 4, 2021, 9:06 a.m.