Quantile function, distribution function, and random generation for the SCL distribution family. See Park (2025) for information about the SCL distributions.
qscl(
p,
M,
k,
num_error_size = 0.01,
lower = TRUE,
log_p = FALSE,
force = FALSE
)pscl(
q,
M,
k,
num_error_size = 0.01,
lower = TRUE,
log_p = FALSE,
force = FALSE
)
rscl(n, M, k)
a list consisting of the numeric vector of quantiles and the num_error_size (numeric) used.
vector of probabilities
the first parameter for the SCL distributions
the second parameter for the SCL distribution
The requested size of numerical error for the outputs of qscl and pscl functions, in terms of the estimated standard deviation of the output. For example num_error_size of 0.01 will output values with the standard deviation of approximately equal to 0.01.
logical; if TRUE, probabilities are P(X <= x), otherwise, P(X > x).
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE, the function will run regardless of how long it will take. If FALSE, the function will ask if you want to continue, stop, or give a new num_error_size value whenever the expected run time is longer than 15 seconds.
vector of quantiles
number of draws