Confidence Intervals for SIR Model Parameters
confint.sir.RdComputes confidence intervals using either Wald-based intervals (from the
Hessian standard errors) or bootstrap percentile intervals. Wald intervals
are the default and require that the model was fit with calc_se = TRUE.
Bootstrap intervals require a boot_sir result and tend to
be more reliable when the Hessian is ill-conditioned.
Usage
# S3 method for class 'sir'
confint(object, parm = NULL, level = 0.95, boot = NULL, ...)Arguments
- object
A fitted
sirobject fromsir.- parm
Character vector of parameter names or integer indices to include. If NULL (default), returns intervals for all parameters.
- level
Confidence level between 0 and 1. Default is 0.95.
- boot
Optional
boot_sirobject fromboot_sir. When provided, percentile intervals from the bootstrap distribution are used instead of Wald intervals.- ...
Additional arguments (unused).