
Last chance! 50% off unlimited learning
Sale ends in
Calculates concentration(s) with bootstrap confidence intervals that protect specified proportion(s) of species for individual or model-averaged distributions using parametric or non-parametric bootstrapping.
ssd_hc(x, ...)# S3 method for list
ssd_hc(x, percent, proportion = 0.05, ...)
# S3 method for fitdists
ssd_hc(
x,
percent,
proportion = 0.05,
average = TRUE,
ci = FALSE,
level = 0.95,
nboot = 1000,
min_pboot = 0.95,
multi_est = TRUE,
ci_method = "weighted_samples",
parametric = TRUE,
delta = 9.21,
samples = FALSE,
save_to = NULL,
control = NULL,
...
)
# S3 method for fitburrlioz
ssd_hc(
x,
percent,
proportion = 0.05,
ci = FALSE,
level = 0.95,
nboot = 1000,
min_pboot = 0.95,
parametric = FALSE,
samples = FALSE,
save_to = NULL,
...
)
A tibble of corresponding hazard concentrations.
The object.
Unused.
A numeric vector of percent values to estimate hazard concentrations for. Deprecated for proportion = 0.05
.
A numeric vector of proportion values to estimate hazard concentrations for.
A flag specifying whether to provide model averaged values as opposed to a value for each distribution.
A flag specifying whether to estimate confidence intervals (by bootstrapping).
A number between 0 and 1 of the confidence level of the interval.
A count of the number of bootstrap samples to use to estimate the confidence limits. A value of 10,000 is recommended for official guidelines.
A number between 0 and 1 of the minimum proportion of bootstrap samples that must successfully fit (return a likelihood) to report the confidence intervals.
A flag specifying whether to treat the distributions as constituting a single distribution (as opposed to taking the mean) when calculating model averaged estimates.
A string specifying which method to use for estimating the bootstrap values. Possible values are "multi_free" and "multi_fixed" which treat the distributions as constituting a single distribution but differ in whether the model weights are fixed and "weighted_samples" and "weighted_arithmetic" take bootstrap samples from each distribution proportional to its weight versus calculating the weighted arithmetic means of the lower and upper confidence limits.
A flag specifying whether to perform parametric bootstrapping as opposed to non-parametrically resampling the original data with replacement.
A non-negative number specifying the maximum absolute AIC difference cutoff. Distributions with an absolute AIC difference greater than delta are excluded from the calculations.
A flag specfying whether to include a numeric vector of the bootstrap samples as a list column in the output.
NULL or a string specifying a directory to save where the bootstrap datasets and parameter estimates (when successfully converged) to.
A list of control parameters passed to stats::optim()
.
ssd_hc(list)
: Hazard Concentrations for Distributional Estimates
ssd_hc(fitdists)
: Hazard Concentrations for fitdists Object
ssd_hc(fitburrlioz)
: Hazard Concentrations for fitburrlioz Object
Model-averaged estimates and/or confidence intervals (including standard error)
can be calculated by treating the distributions as
constituting a single mixture distribution
versus 'taking the mean'.
When calculating the model averaged estimates treating the
distributions as constituting a single mixture distribution
ensures that ssd_hc()
is the inverse of ssd_hp()
.
If treating the distributions as constituting a single mixture distribution
when calculating model average confidence intervals then
weighted
specifies whether to use the original model weights versus
re-estimating for each bootstrap sample unless 'taking the mean' in which case
weighted
specifies
whether to take bootstrap samples from each distribution proportional to
its weight (so that they sum to nboot
) versus
calculating the weighted arithmetic means of the lower
and upper confidence limits based on nboot
samples for each distribution.
Distributions with an absolute AIC difference greater than a delta of by default 7 have considerably less support (weight < 0.01) and are excluded prior to calculation of the hazard concentrations to reduce the run time.
Burnham, K.P., and Anderson, D.R. 2002. Model Selection and Multimodel Inference. Springer New York, New York, NY. doi:10.1007/b97636.
predict.fitdists()
and ssd_hp()
.
ssd_hc(ssd_match_moments())
fits <- ssd_fit_dists(ssddata::ccme_boron)
ssd_hc(fits)
fit <- ssd_fit_burrlioz(ssddata::ccme_boron)
ssd_hc(fit)
Run the code above in your browser using DataLab