Description Usage Arguments Details Value See Also Examples
View source: R/add_ci_negbin.R
This function is one of the methods for add_ci, and is
called automatically when add_ci is used on a fit of
class negbin.
1 2 3 4 5 6 7 8 9 10 11 12 |
df |
A data frame of new data. |
fit |
An object of class |
alpha |
A real number between 0 and 1. Controls the confidence level of the interval estimates. |
names |
|
yhatName |
A string. Name of the vector of predictions made for each observation in df |
response |
A logical. The default is |
type |
A string. Must be |
nSims |
An integer. Number of simulations to perform if the bootstrap method is used. |
... |
Additional arguments. |
The default link function is log-link. Confidence Intervals are
determined by making an interval on the scale of the linear
predictor, then applying the inverse link function from the model
fit to transform the linear level confidence intervals to the
response level. Alternatively, bootstrap confidence intervals may
be formed. The bootstrap intervals are formed by first resampling
cases from the data frame used to calculate fit, then bias
corrected and accelerated intervals are calculated. See
boot::boot.ci for more details.
A dataframe, df, with predicted values, upper and lower
confidence bounds attached.
add_pi.negbin for prediction intervals for
negbin objects, add_probs.negbin for conditional
probabilities of negbin objects, and
add_quantile.negbin for response quantiles of
negbin objects.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.