augment.logitr | R Documentation |
logitr
class objectGlance a logitr
class object
## S3 method for class 'logitr'
augment(x, newdata = NULL, obsID = NULL, type = "prob", ...)
x |
is an object of class |
newdata |
a |
obsID |
The name of the column that identifies each set of
alternatives in the data. Required if newdata != NULL. Defaults to |
type |
A character vector defining what to predict: |
... |
further arguments. |
A tibble of ...
library(logitr)
# Estimate a preference space model
mnl_pref <- logitr(
data = yogurt,
outcome = "choice",
obsID = "obsID",
pars = c("price", "feat", "brand")
)
# Extract a tibble of the model summary statistics
augment(mnl_pref)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.