The following data choices are listed in the workclass field in the table loss_payments: "Retention" "Liquidation"
Here is an example:
proc summary data=loss_payments sum nway;
where work_class = 'Retention';
class iv_grp work_status;
var age_grp:;
output out=retention(drop=_type_ rename=(_freq_=total)) sum=;
run;
data retention_pct;
set retention;
array age_grp[5];
array pct[5];
do i=1 to 5;
if total then pct = round(age_grp/total,.0001);
end;
run;
proc sort data=retention_pct;
by iv_grp descending workout_status;
run;
I need to take two records that appear in the results, Prep1 and Prep2 and create a dummy work_class called "Prep". I then need to do a proc summary on those records that are Prep1 or Prep2 following the logic above. So work_class = 'Retention' is replaced by work_class = 'Prep'.