40 likes | 54 Views
Create a subset of DPC data. proc freq data = dpc.ipd_student ; tables study*male/ norow nocol nopercent ; run ;. proc sql ; select study,sum (not male) as numfemale from dpc.ipd_student group by study having numfemale = 0 ; quit ;. proc sql ; create table bothgenders as
E N D
procfreqdata=dpc.ipd_student; tables study*male/norownocolnopercent; run;
procsql; selectstudy,sum(not male) asnumfemale fromdpc.ipd_student groupby study havingnumfemale = 0 ; quit;
procsql; createtablebothgendersas select study, name, age, chol, currsmok, male, dead, d_chd, followd, sbp, dbp, bmi, diab fromdpc.ipd_student where study notin (13,17,18,23,27) orderby study, male, race ; run; procfreqdata=bothgenders; tables study*male/norownocolnopercent; run;