Truncated t distribution
trunct.Rd
Density, distribution function, quantile function, and random generation for the truncated t distribution.
Usage
dtrunct(x, df, min = -Inf, max = Inf, log = FALSE)
ptrunct(q, df, min = -Inf, max = Inf, lower.tail = TRUE, log.p = FALSE)
qtrunct(p, df, min = -Inf, max = Inf, lower.tail = TRUE, log.p = FALSE)
rtrunct(n, df, min = -Inf, max = Inf)
Arguments
- x, q
vector of quantiles
- df
degrees of freedom parameter, must be positive.
- min, max
truncation bounds.
- log, log.p
logical; if
TRUE
, probabilities/densities \(p\) are returned as \(\log(p)\).- lower.tail
logical; if
TRUE
, probabilities are \(P[X <= x]\), otherwise \(P[X > x]\).- p
vector of probabilities
- n
number of random values to return.