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 Compressed NO Data Set Type Sorted NO Label Data Representation WINDOWS_32 Encoding wlatin1 Western (Windows) Alphabetic List of Variables and Attributes # Variable Type Len 6 age Num 8 3 gender Num 8 4 height Num 8 1 i Num 8 2 patient Char 3 7 race Num 8 8 tmtdg Char 7 5 weight Num 8 |
13.58.36.141