Question
Datasetcoke.dtacontains the choice between Coke and Pepsi by 1140 shoppers from scanner data. The variable pratio represents the relative price of Coke compared to Pepsi?for
Datasetcoke.dtacontains the choice between Coke and Pepsi by 1140 shoppers from scanner data. The variablepratiorepresents the relative price of Coke compared to Pepsi?for example, if pratio=1.1, it indicates that the price of Coke was 10% higher than that of Pepsi.Disp_Cokeanddisp_pepsiare indicator variables if the product was on special display at the time of the purchase.
(a) Estimate a model that predicts the probability of purchasing Coke (Coke==1) as a function of price ratio and display (both Coke and Pepsi).
Does anyone know how i can answer (a) what kind of script do i have to use in R studio?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started