model.frame.logitr | R Documentation |
Returns a data.frame with the variables needed to use formula and
any ...
arguments.
## S3 method for class 'logitr'
model.frame(formula, ...)
formula |
a model |
... |
further arguments. |
A data.frame with the variables needed to use formula and
any ...
arguments.
library(logitr)
# Estimate a preference space model
mnl_pref <- logitr(
data = yogurt,
outcome = "choice",
obsID = "obsID",
pars = c("price", "feat", "brand")
)
# Get the model.frame data frame
model.frame(mnl_pref)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.