Learn R Programming

parameters (version 0.2.0)

odds_to_probs: Conversion between (log)odds and probabilities

Description

Enables a conversion between (log)odds and probabilities.

Usage

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

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

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

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

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

Arguments

x

Odds or probs values in vector or dataframe.

log

Are these Log odds (such as in logistic models)?

...

Arguments passed to or from other methods.

select

Character or list of of column names to be transformed.

exclude

Character or list of column names to be excluded from transformation.

Value

Converted index.

Examples

Run this code
# NOT RUN {
odds_to_probs(-1.45)
odds_to_probs(3.22)
# }

Run the code above in your browser using DataLab