confint.logitr | R Documentation |
Returns confidence intervals from an object of class logitr
.
## S3 method for class 'logitr'
confint(object, parm, level = 0.95, ...)
object |
is an object of class |
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. |
A data frame of the confidence intervals of model coefficients.
library(logitr)
# Estimate a preference space model
mnl_pref <- logitr(
data = yogurt,
outcome = "choice",
obsID = "obsID",
pars = c("price", "feat", "brand")
)
# Compute a confidence interval
confint(mnl_pref)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.