tlogis: truncated logistic distribution

tlogisR Documentation

truncated logistic distribution

Description

Density, distribution function, and quantile function for truncated logistic distribution.

Usage

dtlogis(x, location = 0, scale = 1, log = FALSE)

ptlogis(q, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

qtlogis(p, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

rtlogis(n, location = 0, scale = 1)

Arguments

x, q

A numeric vector of quantiles.

location

A numeric value of location parameter for the logistic distribution.

scale

A numeric value of scale parameter for the logistic distribution.

log, log.p

A logical; if TRUE, the probability p is given as log(p).

lower.tail

A logical; if TRUE, the probability is P[X <= x], otherwise, P[X > x].

p

A numeric vector of probabilities.

Details

The truncated logistic distribution has the cumulative distribution function F(q) = 1-(1-G(q))/(1-G(0)) where G(q) is the cumulative distribution function of the logistic distribution with location and scale.

Value

'dtlogis' gives the desity, 'ptlogis' gives the distribution, and 'qtlogis' gives the quantile function.


okamumu/Rsrat documentation built on Feb. 10, 2024, 11:07 p.m.