logit2prob: Convert Logit to Probability and vice versa

View source: R/logit-prob.R

logit2probR Documentation

Convert Logit to Probability and vice versa

Description

This function takes a logit value and converts it to a probability using the logistic function and vice versa.

Usage

logit2prob(logit)

prob2logit(prob)

Arguments

logit

Numeric. The logit value to be converted to probability.

prob

Numeric. A probability to be converted to a logit.

Value

Numeric.

Examples

logit2prob(0) # Returns 0.5
logit2prob(2) # Returns 0.8807971
prob2logit(0.8807971)

jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.