std: Student Distribution

dstdR Documentation

Student Distribution

Description

Density, distribution, quantile function and random number generation for the student distribution parameterized in terms of mean, standard deviation and shape parameters.

Usage

dstd(x, mu = 0, sigma = 1, shape = 5, log = FALSE)

pstd(q, mu = 0, sigma = 1, shape = 5, lower_tail = TRUE, log = FALSE)

qstd(p, mu = 0, sigma = 1, shape = 5, lower_tail = TRUE, log = FALSE)

rstd(n, mu = 0, sigma = 1, shape = 5)

Arguments

x, q

vector of quantiles.

mu

mean.

sigma

standard deviation.

shape

shape parameter.

log

(logical) if TRUE, probabilities p are given as log(p).

lower_tail

if TRUE (default), probabilities are P[X \le x] otherwise, P[X > x].

p

vector of probabilities.

n

number of observations.

Value

d gives the density, p gives the distribution function, q gives the quantile function and r generates random deviates. Output depends on x or q length, or n for the random number generator.


tsdistributions documentation built on June 8, 2025, 11:20 a.m.