I dont have any data but i have to give a sample code for how i would solve such a problem. the problem is to Create a variable decision_pt that sums the occurences of the following age < 45 state is “URBAN” or “HIGHLY URBAN” furniture >= 5 premium = yes usage = “COMMERCIAL” male = 1 data a;
set a;
retain decision_pt = 0;
if age < 45 then decision_pt =decision_pt +1 ;
if state ="URBAN" or "HIGHLY URBAN" decision_pt =decision_pt +1 ; am i on the right track?
... View more