
Summarise bootstrap coefficient stability
Source:R/model_performance_bootstrap_coefficients.R
summary.bootstrap_coefficients.RdSummarise the coefficient distributions returned by
bootstrap_coefficients() on the GLM link scale or after exponentiation.
Arguments
- object
A
bootstrap_coefficientsobject.- scale
Character string.
"link"reports coefficients on their fitted GLM scale."exponentiated"appliesexp()to every original and bootstrap coefficient."relativity"is an alias for"exponentiated"; this interpretation is most direct for a log-link GLM. For a logit-link model, exponentiated coefficients are odds ratios rather than response probabilities.- confidence
Numeric scalar between 0 and 1 giving the confidence level.
- interval
Character string.
"percentile"uses empirical bootstrap quantiles."normal"uses the original estimate plus or minus a normal quantile times the bootstrap standard error.- ...
Additional arguments are not used.
Value
A data frame with one row per original coefficient and columns:
- term
Coefficient name.
- estimate
Estimate from the original GLM.
- bootstrap_mean
Mean of the finite bootstrap estimates.
- bias
Bootstrap mean minus the original estimate.
- bootstrap_se
Standard deviation of the bootstrap estimates.
- lower, upper
Requested bootstrap interval.
- n_successful
Number of finite bootstrap estimates for the term.
- n_requested
Number of requested bootstrap samples.
- success_rate
n_successful / n_requested.