Description Usage Arguments Details Value References Examples
Density, distribution function, quantile function and random generation function for the Prenctice distribution.
1 2 3 4 |
x, q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. |
alpha |
vector of size two with shape parameters. |
The Stukel distribution with parameter m has distribution function given by
F(x) = 1/(1 + exp(-h(x,alpha)))
for alpha[1] > 0 and alpha[2] > 0, h(x,alpha) is
h(x,alpha) = (exp(alpha[1]*x) - 1)/alpha[1] if (x >= 0) and (alpha[1] > 0) x if (x >= 0) and (alpha[1] = 0) -log(1 - alpha[1]*x)/alpha[1] if (x >= 0) and (alpha[1] < 0) -(exp(-alpha[2]*x) - 1)/alpha[2] if (x < 0) and (alpha[2] > 0) x if (x < 0) and (alpha[2] = 0) log(1 + alpha[2]*eta)/alpha[2] if (x < 0) and (alpha[2] < 0)
'dstukel' gives the density, 'pstukel' gives the distribution function, 'qstukel' gives the quantile function, and 'rstukel' generates random deviates.
Stukel, T. A. (1988) Generalized logistic models. Journal of the American Statistical Association, pp. 426-431.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.