Data from Jain et al. (1994) containing 2,412 choice observations from a series of yogurt purchases by a panel of 100 households in Springfield, Missouri, over a roughly two-year period. The data were collected by optical scanners and contain information about the price, brand, and a "feature" variable, which identifies whether a newspaper advertisement was shown to the customer. There are four brands of yogurt: Yoplait, Dannon, Weight Watchers, and Hiland, with market shares of 34%, 40%, 23% and 3%, respectively.

data(yogurt)

Format

VariableDescription
idindividual identifiers
obsIDidentifier for unique choice observation
altalternative in each choice observation
choicedummy code for choice (1 or 0)
priceprice of yogurt
featdummy for whether a newspaper advertisement was shown to the customer (1 or 0)
brandyogurt brand: "yoplait", "dannon", "hiland", or "weight" (for weight watcher)
dannondummy variable for the "dannon" brand (1 or 0)
hilanddummy variable for the "hiland" brand (1 or 0)
weightdummy variable for the "weight" brand (1 or 0)
yoplaitdummy variable for the "yoplait" brand (1 or 0)

Source

Raw data downloaded from the package mlogit v0.3-0 by Yves Croissant archive

References

Dipak C. Jain, Naufel J. Vilcassim & Pradeep K. Chintagunta (1994) A Random-Coefficients Logit Brand-Choice Model Applied to Panel Data, Journal of Business & Economic Statistics, 12:3, 317-328, doi: 10.1080/07350015.1994.10524547

Examples

data(yogurt) head(yogurt)
#> # A tibble: 6 × 11 #> id obsID alt choice price feat brand dannon hiland weight yoplait #> <dbl> <int> <int> <dbl> <dbl> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 1 1 1 0 8.1 0 dannon 1 0 0 0 #> 2 1 1 2 0 6.10 0 hiland 0 1 0 0 #> 3 1 1 3 1 7.90 0 weight 0 0 1 0 #> 4 1 1 4 0 10.8 0 yoplait 0 0 0 1 #> 5 1 2 1 1 9.80 0 dannon 1 0 0 0 #> 6 1 2 2 0 6.40 0 hiland 0 1 0 0