1 / 4

Create a subset of DPC data

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

jsaylor
Download Presentation

Create a subset of DPC data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Create a subset of DPC data

  2. procfreqdata=dpc.ipd_student; tables study*male/norownocolnopercent; run;

  3. procsql; selectstudy,sum(not male) asnumfemale fromdpc.ipd_student groupby study havingnumfemale = 0 ; quit;

  4. 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;

More Related