Description Usage Arguments Details Author(s) See Also
It produces a histogram of the response along with the estimated density from the assumed distribution as well as a normal Q-Q plot for the (randomised) normalised quantile response. It also provides the log-likelihood for AIC calculation, for instance.
1 2 3 4 5 6 |
y |
Response. |
margin |
The distributions allowed are: normal ("N"), log-normal ("LN"), generelised Pareto ("GP"), discrete generelised Pareto ("DGP"), Gumbel ("GU"), reverse Gumbel ("rGU"), logistic ("LO"), Weibull ("WEI"), inverse Gaussian ("iG"), gamma ("GA"), Dagum ("DAGUM"), Singh-Maddala ("SM"), beta ("BE"), Fisk ("FISK"), Poisson ("PO"), zero truncated Poisson ("ZTP"), negative binomial - type I ("NBI"), negative binomial - type II ("NBII"), Poisson inverse Gaussian ("PIG"). |
main |
Title for the plot. |
xlab |
Title for the x axis. |
print.par |
If |
plots |
If |
loglik |
If |
os |
If |
intervals |
If |
n.sim |
Number of replicate datasets used to simulate quantiles of the residual distribution. |
prob.lev |
Overall probability of the left and right tails of the probabilities' distribution used for interval calculations. |
i.f |
Internal fitting option. This is not for user purposes. |
min.dn, min.pr, max.pr |
Allowed minimum and maximum for estimated probabities and densities for parameter estimation. |
... |
Other graphics parameters to pass on to plotting commands. |
Prior to fitting a model with discrete and/or continuous margins, the distributions for the responses may be chosen by looking at the histogram of the response along with the estimated density from the assumed distribution, and at the normalised quantile responses. These will provide a rough guide to the adequacy of the chosen distribution. The latter are defined as the quantile standard normal function of the cumulative distribution function of the response with scale and location estimated by MLE. These should behave approximately as normally distributed variables (even though the original observations are not). Therefore, a normal Q-Q plot is appropriate here.
If loglik = TRUE
then this function also provides the log-likelihood for AIC calculation, for instance.
The shapiro test can also be performed.
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.