PROGRAM
--------------------------------------
***************************************************************
SAMPLE DATASET: EFFICACY
---------------------------------------------------------------
DEMOGRAPHIC SAMPLE DATASET
VARIABLES: DRUG (PBO OR DRG),
SUBJECT ID(SUBJECT)
VISIT1 (1 OR 2)
VISIT2 ('BASE' OR 'POST')
DAY (RELATIVE DAY FROM RADOMIZATION. BASE=0)
RES (EFFICACY RESPONSE VALUE.
SMALLER VALUE HAS BETTER
EFFECT.)
OTHERS: 10% MISSING DATA
***************************************************************;
DATA EFFICACY ;
CALL STREAMINIT (54321);
DO DOSE =1 TO 2 ;
DO ID=1 TO 10 ;
VISIT1 = 1 ;
VISIT2 ='BASE';
DAY = 0 ;
RES = ROUND(10+ RAND('NORMAL')*2, .1) ;
OUTPUT ;
VISIT1 = 2 ;
VISIT2 ='POST';
DAY = ROUND(90+3*RAND('NORMAL'),1.);
RES = ROUND( 5+ RAND('NORMAL')*20, .1) ;
/*MISSING INFO.: 10% MISSING DATA RANDOMLY AT POST BASELINE*/
DUM1 = RAND('UNIFORM');
IF DUM1<0.1 THEN RES=. ;
OUTPUT ;
END ;
END ;
RUN ;
DATA EFFICACY ;
SET EFFICACY ;
KEEP DOSE SUBJECT VISIT1 VISIT2 DAY RES ;
IF DOSE=1 THEN SUBJECT = ID ;
ELSE IF DOSE=2 THEN SUBJECT = 10+ID ;
RUN ;
--------------------------------------
Post a Comment
別ページに移動します