Description Usage Arguments Value Author(s) References Examples
Computes the pdf, cdf, quantile and random numbers of the geometric exponential Poisson G distribution due to Nadarajah et al. (2013) specified by the pdf
f (x) = \displaystyle \frac {\displaystyle θ (1 - η) ≤ft[ 1 - \exp (-θ) \right] g (x) \exp ≤ft[ -θ + θ G (x) \right]}{\displaystyle ≤ft\{ 1 - \exp (-θ) - η + η \exp ≤ft[ -θ + θ G (x) \right] \right\}^2}
for G any valid cdf, g the corresponding pdf, θ > 0, the first scale parameter, and 0 < eta < 1, the second scale parameter. Also computes the Cramer-von Misses statistic, Anderson Darling statistic, Kolmogorov Smirnov test statistic and p-value, maximum likelihood estimates, Akaike Information Criterion, Consistent Akaikes Information Criterion, Bayesian Information Criterion, Hannan-Quinn information criterion, standard errors of the maximum likelihood estimates, minimum value of the negative log-likelihood function and convergence status when the distribution is fitted to some data
1 2 3 4 5 |
x |
scaler or vector of values at which the pdf or cdf needs to be computed |
p |
scaler or vector of probabilities at which the quantile needs to be computed |
n |
number of random numbers to be generated |
theta |
the value of first scale parameter, must be positive, the default is 1 |
eta |
the value of second scale parameter, must be in the open unit interval, the default is 0.5 |
spec |
a character string specifying the distribution of G and g (for example, "norm" if G and g correspond to the standard normal). |
log |
if TRUE then log(pdf) are returned |
log.p |
if TRUE then log(cdf) are returned and quantiles are computed for exp(p) |
lower.tail |
if FALSE then 1-cdf are returned and quantiles are computed for 1-p |
... |
other parameters |
g |
same as spec but must be one of chisquare ("chisq"), exponential ("exp"), F ("f"), gamma ("gamma"), lognormal ("lognormal"), Weibull ("weibull"), Burr XII ("burrxii"), Chen ("chen"), Frechet ("frechet"), Gompertz ("gompertz"), linear failure rate ("lfr"), log-logistic ("log-logistic"), Lomax ("lomax") and Rayleigh ("rayleigh"). Each of these distributions has one parameter ( |
data |
a vector of data values for which the distribution is to be fitted |
starts |
initial values of |
method |
the method for optimizing the log likelihood function. It can be one of |
An object of the same length as x
, giving the pdf or cdf values computed at x
or an object of the same length as p
, giving the quantile values computed at p
or an object of the same length as n
, giving the random numbers generated or an object giving the values of Cramer-von Misses statistic, Anderson Darling statistic, Kolmogorov Smirnov test statistic and p-value, maximum likelihood estimates, Akaike Information Criterion, Consistent Akaikes Information Criterion, Bayesian Information Criterion, Hannan-Quinn information criterion, standard errors of the maximum likelihood estimates, minimum value of the negative log-likelihood function and convergence status.
Saralees Nadarajah, Ricardo Rocha
S. Nadarajah and R. Rocha, Newdistns: An R Package for New Families of Distributions, Journal of Statistical Software, 69(10), 1-32, doi:10.18637/jss.v069.i10
S. Nadarajah, V. G. Cancho, E. M. M. Ortega, The geometric exponential Poisson distribution, Stat Methods Appl 22 (2013) 355-380
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.