Code:
if country=="UK" if country=="Ireland"
if country=="UK" if country=="Ireland"
gen newprod= cond(inlist(prod, "Apples (1 kg)", "Bananas (1 kg)"), "Fruits", "Others ") encode newprod, gen(product) preserve collapse abs_price, by(product year) xtset product year xtline abs_price, overlay scheme(s1color) ytitle("Price") xtitle("") restore
Leave a comment: