50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


landsepi (version 1.2.5)

invlogit: Inverse logit function

Description

Given a numeric object, return the invlogit of the values. Missing values (NAs) are allowed.

Usage

invlogit(x)

Value

An object of the same type as x containing the invlogits of the input values.

Arguments

x

a numeric object

Details

The invlogit is defined by exp(x)/(1+exp(x)). Values in x of -Inf or Inf return invlogits of 0 or 1 respectively. Any NAs in the input will also be NAs in the output.

Examples

Run this code
invlogit(10)

Run the code above in your browser using DataLab