Learn R Programming

RCPA3 (version 1.3.1)

inverse.logit: Converts linear predictor to probability

Description

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

Usage

inverse.logit(logged_odds)

Value

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

Arguments

logged_odds

A numeric value, or vector of numeric values.

Examples

Run this code
   library(RCPA3)
   
   inverse.logit(0)
   inverse.logit(-5:5)

Run the code above in your browser using DataLab