log using "data for probit logit.xlsx"
gen product = ( product_variety+ product_taste+ product_nutrition+ product_appearance+ product_packaging)/5
gen place = ( place_location + place_speed + place_openhour + place_shelf_arrangment )/4
gen promotion =( promotion_redemptiom+ promotion_privilege+ promotion_stamp+ promotion_ads+ promotion_member_card)/5
gen intrinsic = ( brand_variety+ brand_awareness+ perceived_control+ perceived_standard+ quality_control)/5
gen healthy_approach = ( h_nutrition+ h_fat_content+ h_taste+ h_convenience)/4
gen taste_approach = ( t_joy_of_eating+ t_save_money+ t_taster)/3
gen convenience_approach = ( c_hard_cooking+c_wastetime+c_purchased_frequency+c_timepressured)/4


// table 5 //
probit eat_rte product price place promotion healthy_approach taste_approach convenience_approach
mfx
oprobit number_meals gender age income education student business_man office_worker public_worker freelance product place promotion intrinsic healthy_approach taste_approach convenience_approach
mfx, predict(pr outcome(0))
mfx, predict(pr outcome(1))
mfx, predict(pr outcome(2))
mfx, predict(pr outcome(3))
predict pmlogit0 pmlogit1 pmlogit2 pmlogit3, pr
summarize pmlogit0 pmlogit1 pmlogit2 pmlogit3
tabulate $ylist
log close
