Uses parametric or nonparametric bootstrap resampling in order to simulate uncertainty
in the parameters of the distribution fitted to destruction rate data.
Generic methods are print
, plot
, summary
.
bootDR(f, bootmethod="param", niter=1001, silent=TRUE)
bootDR
returns an object of class "bootDR"
inheriting from the "bootdist"
class.
That is a list with 6 components,
a data frame containing the bootstrapped values of parameters.
a vector containing the codes for convergence obtained if an iterative method is used to estimate parameters on each bootstraped data set (and 0 if a closed formula is used).
A character string coding for the type of resampling : "param"
for a parametric
resampling and "nonparam"
for a nonparametric resampling.
The number of samples drawn by bootstrap.
bootstrap medians and 95 percent confidence percentile intervals of parameters.
The object of class "fitDR"
on which the bootstrap procedure
was applied.
Generic functions:
print
The print of a "bootDR"
object shows the bootstrap parameter estimates.
If inferior to the whole number of bootstrap iterations,
the number of iterations for which the estimation converges is also printed.
summary
The summary provides the median and 2.5 and 97.5 percentiles of each parameter. If inferior to the whole number of bootstrap iterations, the number of iterations for which the estimation converges is also printed in the summary.
plot
The plot shows the bootstrap estimates with stripchart
function
for univariate parameters and plot
function for multivariate parameters.
An object of class "fitDR"
, output of the fitDR
function.
A character string coding for the type of resampling : "param"
for a parametric resampling and "nonparam"
for a nonparametric resampling of data.
The number of samples drawn by bootstrap.
A logical to remove or show warnings and errors when bootstraping.
Christophe Dutang
Samples are drawn by parametric bootstrap (resampling from the distribution fitted by
fitDR
) or nonparametric bootstrap (resampling with replacement from the
data set). On each bootstrap sample the estimation process is
used to estimate bootstrapped values of parameters. When that function fails
to converge, NA
values are returned. Medians and 2.5 and 97.5 percentiles are
computed by removing NA
values.
This method returns an object of class "bootDR"
inheriting from the
"bootdist"
class. Therefore the following generic methods are defined:
print
, plot
, summary
.
Cullen AC and Frey HC (1999), Probabilistic techniques in exposure assessment. Plenum Press, USA, pp. 181-241.
Delignette-Muller ML and Dutang C (2015), fitdistrplus: An R Package for Fitting Distributions. Journal of Statistical Software, 64(4), 1-34.
See mledist
, mmedist
,
qmedist
, mgedist
for details on parameter estimation.
See bootdist
for details on generic function.
See fitDR
for estimation procedures.
# We choose a low number of bootstrap replicates in order to satisfy CRAN running times
# constraint.
# For practical applications, we recommend to use at least niter=501 or niter=1001.
Run the code above in your browser using DataLab