invlogit: Inverse logit transformation

View source: R/GLM_functions.R

invlogitR Documentation

Inverse logit transformation

Description

This function performs the inverse logit transformation, which converts continuous values to the range (0, 1).

Usage

invlogit(x)

Arguments

x

A vector of numeric values.

Details

=============================================================================

The inverse logit transform is useful when you want to convert an estimate from the log odds (logit) scale back into a probability. That may happen when working with logistic regression models.

Value

A vector of estimated probabilities.

Examples

invlogit(0)
round(invlogit(-7:7), 3)


sjpierce/piercer documentation built on Dec. 30, 2024, 3:28 p.m.