
Plot bootstrap coefficient stability
Source:R/model_performance_bootstrap_coefficients.R
autoplot.bootstrap_coefficients.RdShow original GLM estimates as points and bootstrap intervals as horizontal lines. Row labels show the number of comparable estimates over the number of requested resamples. A row without an interval has insufficient comparable estimates for the selected interval method.
Arguments
- object
A
bootstrap_coefficientsobject.- ...
Additional arguments are not used.
- 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 treatment-coded factors, these are ratios to the reference level. For an untransformed numeric predictor without interactions, the ratio is for a one-unit increase. The exponentiated intercept is a baseline level, not a factor relativity. For a logit-link model, exponentiated coefficients are odds ratios rather than response probabilities.- terms
Optional character vector of coefficient names, in display order from top to bottom. By default show all terms except the intercept, or the intercept alone for an intercept-only model.
- 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.
Value
A ggplot2::ggplot object.