augment.logitr {logitr} | R Documentation |
Glance a logitr
class object
Description
Glance a logitr
class object
Usage
## S3 method for class 'logitr'
augment(x, newdata = NULL, obsID = NULL, type = "prob", ...)
Arguments
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. |
Value
A tibble of ...
Examples
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)
[Package logitr version 1.1.2 Index]