View source: R/hurdle-methods.R
| confint.beezdemand_hurdle | R Documentation |
Computes confidence intervals for fixed effect parameters from a TMB-based hurdle demand model using the asymptotic normal approximation.
## S3 method for class 'beezdemand_hurdle'
confint(
object,
parm = NULL,
level = 0.95,
report_space = c("internal", "natural"),
...
)
object |
A |
parm |
Character vector of parameter names to compute CIs for. Default includes all fixed effect parameters. |
level |
Confidence level (default 0.95). |
report_space |
Character. Reporting space for parameters:
|
... |
Additional arguments (ignored). |
Confidence intervals are computed using the asymptotic normal approximation
based on standard errors from TMB::sdreport(). For parameters estimated
on the log scale (Q0, alpha, k), intervals can be back-transformed to the
natural scale using report_space = "natural".
The transformation uses:
For log-scale parameters: exp(estimate +/- z * SE)
A tibble with columns: term, estimate, conf.low, conf.high,
level, component, estimate_scale.
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
confint(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.