Returns confidence intervals from an object of class logitr.
Usage
# S3 method for class 'logitr'
confint(object, parm, level = 0.95, ...)Arguments
- object
is an object of class
logitr(a model estimated using the 'logitr()` function).- parm
A specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered.
- level
The confidence level required.
- ...
further arguments.
Examples
library(logitr)
# Estimate a preference space model
mnl_pref <- logitr(
data = yogurt,
outcome = "choice",
obsID = "obsID",
pars = c("price", "feat", "brand")
)
#> Running model...
#> Done!
# Compute a confidence interval
confint(mnl_pref)
#> 2.5 % 97.5 %
#> price -0.4147499 -0.3183283
#> feat 0.2525613 0.7276423
#> brandhiland -4.0019537 -3.4235527
#> brandweight -0.7465253 -0.5360062
#> brandyoplait 0.5782960 0.8956858
