Learn R Programming

texmex (version 1.1)

bootgpd: Parametric bootstrap for generalized Pareto models

Description

Parametric bootstrap for generalized Pareto models with or without covariates

Usage

bootgpd(x, R = 100, trace = 10)

Arguments

x
An object of class gpd
R
The number of replicates to run. Defaults to R = 99.
trace
Report progress to the user every trace replicates. Defaults to trace = 10.

Value

  • callThe function call
  • replicatesThe bootstrap parameter estimates
  • summary.bootgpd: marginsSummary of the marginal parameter estiamtes
  • summary.bootgpd: covarianceCovariance of the parameter estimates

Details

The design matrices for phi and xi are held intact and random numbers are generated as the bootstrap response variable. Especially for small sample sizes, non-parameteric bootstrapping of GPD models can result in unreasonable distributions (such as bimodal) due to small numbers of observed extreme values having considerable influence on parameter estimates in a minority of samples. Therefore, only parametric bootstrapping is implemented here.

The print method returns the original point estimates, bootstrap means, bootstrap estimates of bias and standard deviation. The bootstrap median is also returned.

Efron and Tibshirani state that ``As a rule of thumb, a bias of less than 0.25 standard errors can be ignored, unless we are trying to do careful confidence interval calculations'' (Chapter 10, page 128). As such, the functions warn the user if any ratio of estimated bias to standard error exceeds this level.

The summary method returns the same as the print method, but also the bootstrap estimate of the covariance of the parameters. When printed, the correlation (not covariance) is displayed. The covariance might be wanted to pass into gpd using method = "simulate". In particular, in some circumstances the numerical estimate of the Hessian of the parameters can be unstable, resulting in the Metropolis algorithm using a proposal distribution that is too narrow. This shows up as the acceptance rate of the algorithm being too high (above about 45%). Then, using a bootstrap estimate might be preferable.

The plot method displays histograms and kernel density estimates.

See Also

gpd

Examples

Run this code
mod <- gpd(log(ALT.M), data=liver, qu=.7, xi=~as.numeric(dose))
bmod <- bootgpd(mod)
summary(bmod)
par(mfrow=c(1,3))
plot(bmod)

Run the code above in your browser using DataLab