logistic: Logistic Function

View source: R/S02_Math.R

logisticR Documentation

Logistic Function

Description

This function applies the logistic function to a set of values.

Usage

logistic(x, na.rm = TRUE)

Arguments

x

A set of values (-Inf ≤ x ≤ Inf).

na.rm

Logical; if TRUE, removes NA values first.

Value

Returns a set of values between 0 and 1.

Examples

round(logistic(c(0, -2.197225, 2.1972255, -Inf, Inf)), 6)

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