Learn R Programming

poliscidata (version 2.3.0)

inverse.logit: Calculates predicted probability for a given logged odds value

Description

This function calculates predicted probability for a given logged odds value, often useful for plotting or reporting predicted probabilities.

Usage

inverse.logit(logged_odds)

Arguments

logged_odds

A numeric value, or vector of numeric values.

Value

Returns predicted probability corresponding the the logged odds value, a numeric value between 0 and 1.

Examples

Run this code
# NOT RUN {
   inverse.logit(0)
   
   inverse.logit(-5:5)
# }

Run the code above in your browser using DataLab