JQPDS | R Documentation |
Density, distribution function, quantile function and random generation for the
Johnson Quantile Parametrized (Semibounded) distribution parametrized by three symmetrical
quantiles (q1
, q2
and q3
) and an alpha
argument, representing the proportion of
density below the bottom quantile. All functions are vectorized.
qJQPDS(p, q1, q2, q3, lower = 0, alpha = 0.1)
pJQPDS(q, q1, q2, q3, lower = 0, alpha = 0.1)
dJQPDS(x, q1, q2, q3, lower = 0, alpha = 0.1)
rJQPDS(N, q1, q2, q3, lower = 0, alpha = 0.1)
p |
vector of probabilities |
q1 , q2 , q3 |
vectors of values, corresponding to lower, median and upper (symmetrical) quantiles |
lower |
vector of lower bounds of distribution |
alpha |
vector of proportions of probability density under the lower bound (or above the upper bound, since the quantiles are symmetrical) |
q |
vector of quantiles |
x |
vector of observations |
N |
number of samples for draw |
The distribution is created by applying the exponential transform T(x)=exp(x) to the Johnson SU distribution
vector of values
# should result in c(0,1,5,12,20)
qJQPDB(c(0, 0.05, 0.5, 0.95, 1), 1, 5, 12, 0, 20, alpha=0.05)
qJQPDS(0.6, 20,50,90)
# should return c(0.00, 0.05, 0.50, 0.95, 1.00)
pJQPDB(c(0, 1, 5, 12, 20), 1,5,12, 0, 20, alpha=0.05)
# should return vector with first and last element equal to NaN
dJQPDB(c(0, 1, 5, 12, 20), 1,5,12, 0, 20, alpha=0.05)
# should return vector with first and last element equal to NaN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.