
Last chance! 50% off unlimited learning
Sale ends in
Probability mass function, distribution function and random generation
for location-scale version of the t-distribution. Location-scale version
of the t-distribution besides degrees of freedom
dlst(x, df, mu = 0, sigma = 1, log = FALSE)plst(q, df, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE)
qlst(p, df, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE)
rlst(n, df, mu = 0, sigma = 1)
vector of quantiles.
degrees of freedom (> 0, maybe non-integer). df = Inf
is allowed.
vector of locations
vector of positive valued scale parameters.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are
vector of probabilities.
number of observations. If length(n) > 1
,
the length is taken to be the number required.
x <- rlst(1e5, 1000, 5, 13)
hist(x, 100, freq = FALSE)
curve(dlst(x, 1000, 5, 13), -60, 60, col = "red", add = TRUE)
hist(plst(x, 1000, 5, 13))
plot(ecdf(x))
curve(plst(x, 1000, 5, 13), -60, 60, col = "red", lwd = 2, add = TRUE)
Run the code above in your browser using DataLab