powered by
Enables a conversion between (log)odds and probabilities.
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, ...)
# 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, ...)
Odds or probs values in vector or dataframe.
Are these Log odds (such as in logistic models)?
Arguments passed to or from other methods.
Character or list of of column names to be transformed.
Character or list of column names to be excluded from transformation.
Converted index.
# NOT RUN { odds_to_probs(-1.45) odds_to_probs(3.22) # }
Run the code above in your browser using DataLab