Learn R Programming

Statomica (version 1.0)

absTd: Absolute Student t Distribution.

Description

Density, distribution function and quantile function of the absolute t distribution.

Usage

d.absTd(x, df, ncp = 0, ...) p.absTd(q, df, ncp = 0, lower.tail = FALSE, ...) q.absTd(p, df, ncp = 0, lower.tail = FALSE, ...)

Arguments

x,q
vector of quantiles.
p
vector of probabilities.
df
degrees of freedom (>0).
ncp
noncentrality parameter.
lower.tail
logical, if lower.tail=FALSE, probabilities are $P[X > x]$, otherwise, $P[X \leq x]$.
...
arguments to pass to functions d, p or q in R package distr.

Value

numeric of length equal to the length of x.

Details

Based on R package distr.

See Also

Functions d, p and q in R package distr.

Examples

Run this code
  z1<-d.absTd(x = c(1:4), df = 3, ncp = 3)
  z2<-p.absTd(q = c(1:4), df = 3, ncp = 0)
  z3<-q.absTd(p = abs(runif(4)), df = 3, ncp = 2)
  
 

Run the code above in your browser using DataLab