inverse.logit: Converts linear predictor to probability

View source: R/helper.functions.r

inverse.logitR Documentation

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)

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

   library(RCPA3)
   
   inverse.logit(0)
   inverse.logit(-5:5)

RCPA3 documentation built on May 29, 2024, 12:19 p.m.

Related to inverse.logit in RCPA3...