Hi everyone, I need to imputed the next VISIT record (only the next one) using LOCF when the AE stop, i.e
VISIT 01DEC2008 for subject1 and VISIT 30JAN2009 for subject 2, tha at the moment are missing.
data have;
informat VISIT date9. START date9. STOP date9.;
input SUBJID VISIT START STOP;
format VISIT date9. START date9. STOP date9.;
cards;
1 02APR2008 07NOV2008 26NOV2008
1 07APR2008 07NOV2008 26NOV2008
1 12MAY2008 07NOV2008 26NOV2008
1 19MAY2008 07NOV2008 26NOV2008
1 30JUN2008 07NOV2008 26NOV2008
1 01JUL2008 07NOV2008 26NOV2008
1 07JUL2008 07NOV2008 26NOV2008
1 07AUG2008 07NOV2008 26NOV2008
1 29SEP2008 07NOV2008 26NOV2008
1 13OCT2008 07NOV2008 26NOV2008
1 20OCT2008 07NOV2008 26NOV2008
1 01DEC2008 . .
1 22FEB2009 . .
2 27NOV2008 06DEC2008 01JAN2009
2 08DEC2008 06DEC2008 01JAN2009
2 22DEC2008 06DEC2008 01JAN2009
2 30JAN2009 . .
2 30MAR2009 . .
;
run;
Thanks,
Vi.
. .