Please, I need to create a variable event and time to event. But I have different measures. The variable is pcrresult and its value is 1


----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input int id float datepcrrequest2 byte pcrresult2 float datepcrrequest3 byte pcrresult3 float datepcrrequest4 byte pcrresult4 float datepcrrequest5 byte pcrresult5
 1 20265 2     . .     . .     . .
 2 19785 2 20996 2     . .     . .
 3 18379 2 18393 2     . .     . .
 4 18582 2 19841 2     . .     . .
 5 19802 2 20170 2 20520 2 20730 2
 6 19926 2 20306 2 20488 2 20801 2
 7 18624 2 18805 2     . .     . .
 8 18568 2 18833 2 19183 2 19456 2
 9 20247 2 20394 2 20772 2     . .
10 20076 2 20436 2 20773 2     . .
11 20044 2 20401 2 20765 2 21182 2
12 19988 2     . .     . .     . .
13 18543 2 18550 2 18564 2 18578 2
14 19799 2 19981 2     . .     . .
15 20202 2 20384 2 20906 2 21252 2
end
format %tdDD/NN/CCYY datepcrrequest2
format %tdDD/NN/CCYY datepcrrequest3
format %tdDD/NN/CCYY datepcrrequest4
format %tdDD/NN/CCYY datepcrrequest5
------------------ copy up to and including the previous line ------------------

Listed 15 out of 389 observations

.