June 2005
Beginner
320 pages
8h 23m
English
Creating the DEMOG data set requires that you define the TMTDGFMT format.
proc format;
value tmtdgfmt 0='Active'
1='Placebo';
run;
data demog;
do i=1 to 200;
patient=put(i,z3.);
gender=(ranuni(770)<=0.5);
height=ranuni(22878)*20+55;
weight=ranuni(2179)*170+110;
age=ranuni(51602)*65+20;
race=(ranuni(7270)<=0.66);
tmtdg=left(put((ranuni(76517)<=0.5),tmtdgfmt.));
output;
end;
run;
The CONTENTS Procedure Data Set Name WORK.DEMOG Observations 200 Member Type DATA Variables 8 Engine V9 Indexes 0 Created Thu, Feb 03, 2005 04:38:15 PM Observation Length 64 Last Modified Thu, Feb 03, 2005 04:38:15 PM Deleted Observations 0 Protection ... |
Read now
Unlock full access