powered by
Density, distribution function, quantile function, and random generation for the t distribution with location and scale parameters.
dt2(x, mu, sigma, df, log = FALSE)pt2(q, mu, sigma, df)rt2(n, mu, sigma, df)qt2(p, mu, sigma, df)pt(q, df)
pt2(q, mu, sigma, df)
rt2(n, mu, sigma, df)
qt2(p, mu, sigma, df)
pt(q, df)
dt2 gives the density, pt2 gives the distribution function, qt2 gives the quantile function, and rt2 generates random deviates.
dt2
pt2
qt2
rt2
vector of quantiles
location parameter
scale parameter, must be positive.
degrees of freedom, must be positive.
logical; if TRUE, probabilities/ densities \(p\) are returned as \(\log(p)\).
TRUE
number of random values to return.
vector of probabilities
This implementation of dt2 allows for automatic differentiation with RTMB.
RTMB
x <- rt2(1, 1, 2, 5) d <- dt2(x, 1, 2, 5) p <- pt2(x, 1, 2, 5) q <- qt2(p, 1, 2, 5)
Run the code above in your browser using DataLab