View source: R/mixed-methods.R
| confint.beezdemand_nlme | R Documentation |
Computes confidence intervals for fixed effect parameters from an NLME-based mixed-effects demand model.
## S3 method for class 'beezdemand_nlme'
confint(object, parm = NULL, level = 0.95, method = c("wald", "profile"), ...)
object |
A |
parm |
Character vector of parameter names to compute CIs for. Default includes all fixed effect parameters. |
level |
Confidence level (default 0.95). |
method |
Character. Method for computing intervals:
|
... |
Additional arguments passed to |
For Wald intervals, confidence bounds are computed as estimate ± z * SE using standard errors from the model summary.
For profile intervals, nlme::intervals() is called on the underlying
nlme model object. This method provides more accurate intervals but can be
computationally intensive for complex models.
A tibble with columns: term, estimate, conf.low, conf.high,
level, component.
data(ko)
fit <- fit_demand_mixed(ko, y_var = "y_ll4", x_var = "x",
id_var = "monkey", equation_form = "zben")
confint(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.