logit: Logit Function

View source: R/S02_Math.R

logitR Documentation

Logit Function

Description

This function calculates the logit (log of the odds) of a set of probabilities.

Usage

logit(p, na.rm = TRUE)

Arguments

p

A set of probabilities (0 ≤ p ≤ 1).

na.rm

Logical; if TRUE, removes NA values first.

Value

Returns a set of values that now lie between -∞ and ∞.

Examples

round(logit(c(.5, .1, .9, 0, 1)), 6)

rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.