logit: Calculate the logarithm of the odds of a probability

Description Usage Arguments Value Examples

View source: R/demo_utils.R

Description

Calculate the logarithm of the odds of a probability

Usage

1
logit(p)

Arguments

p

A probability (a values > 0 and less than 1)

Value

The logarithm (to base e) of the probability

Examples

1
2
3
logit(0.5)
logit(0.75)
logit(0.25)

nikdraka/demopkg documentation built on July 2, 2020, 6:26 p.m.