View source: R/hurdle-demand.R
| validate_hurdle_data | R Documentation |
Internal function to validate and prepare data for hurdle demand model fitting.
validate_hurdle_data(data, y_var, x_var, id_var)
data |
A data frame. |
y_var |
Character string, name of consumption variable. |
x_var |
Character string, name of price variable. |
id_var |
Character string, name of subject ID variable. |
A cleaned data frame ready for model fitting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.