Density, distribution function, quantile function and random generation
for the t distribution with df degrees of freedom,
allowing non-zero location, mu,
and non-unit scale, sigma
logical; if TRUE, probability density is returned on the log scale.
n
number of observations.
q
vector of quantiles.
lower.tail
logical; if TRUE (default) probabilities are \(P[X \le x]\); otherwise, \(P[X > x]\).
log.p
logical; if TRUE, probabilities p are given by user as log(p).
p
vector of probabilities.
Value
dt_nonstandard gives the density, pt_nonstandard gives the distribution
function, qt_nonstandard gives the quantile function, and rt_nonstandard
generates random deviates.
Details
See Gelman et al., Appendix A or the BUGS manual for mathematical details.
References
Gelman, A., Carlin, J.B., Stern, H.S., and Rubin, D.B. (2004) Bayesian Data Analysis, 2nd ed. Chapman and Hall/CRC.