bootstrapCI | R Documentation |
Conducts bootstrap to randomly sample of intensity values 'n' times for a specified distribution to estimate the confidence interval for each given non-exceedance probability.
bootstrapCI(Intensity, Parameters, Type = "Gumbel", Rsample = 1000, Return.P, Conf.Inter = 0.95)
Intensity |
a numeric vector with intensity [mm/h] values of different years for a specific time duration (e.g. 5, 15, 120 minutes, etc.) |
Parameters |
list with three elements: (i) type of distribution function (ii) fitted parameters, and (iii) source to call specfic function in the lmomco package. |
Type |
a character specifying a name of the probability distribution function fitted
(see |
Rsample |
An integer representing number of resamples to conduct when confidence interval will be computed. |
Return.P |
a numeric vector with return periods like non-exceedance probabilities. |
Conf.Inter |
level of the confidence interval. |
A list of:
nonexceed.prob
a numeric vector with non-exceedance probabilities.
lower.lim
a numeric vector confidence bound lower for quantile estimates.
upper.lim
a numeric vector confidence bound upper for quantile estimates.
Para.set
a matrix containing estimated distribution parameters for each resample.
quantiles
a matrix of quantile estimates for each resample.
David Zamora <dazamoraa@unal.edu.co> Water Resources Engineering Research Group - GIREH
data(inten) data(Pargumbel) Tp <- c(2, 3, 5, 10, 25, 50, 100) FR <- 1 - 1/Tp CI.test <- bootstrapCI(Intensity = inten, Parameters = Pargumbel, Type = "gumbel", Rsample = 50, Return.P =FR, Conf.Inter = 0.90) (CI.test$Conf.Inter[,2]) # result = 125.9501, 139.6132, 154.6232, 173.6736, 197.5024, 215.0634, 232.4939
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.