Yea, I guess I hoped to solve my question by divided in
1, merging step
2, making wide step.
My question about long to wide is - as I have multiple events (actually up to 20 for each i_id), how can I convert it to wide ?
I was thinking proc transpose, but using it the simple way:
proc transpose data=want out=answer;
run;
I get:
_NAME_ COL1 COL2 COL3 COL4 COL5 COL6
id_2 22222 12345 12345 12345 12345 22222
i_id 57321 62233 62233 78341 95732 97325
i_date 14064 15963 15963 19237 20346 15042
i_prev 0 99 99 99 99 0
i_time 20 30 30 30 30 18
id_3 22222 12344 12344 78341 95732 22222
id_i 57321 62233 62233 62233 62233 97325
g_procedure 8 4 4 4 4 1
g_date 14064 15963 15963 19237 20346 15042
id_4 22222 12345 12345 12345 12345 22222
i_id2 57321 62233 62233 78341 95732 97325
id_l 7777 5481 5482 8921 4841 3901
la 3 2 2 2 2 3
which is not exactly what I want... Mayby I need some by statement? As I have different variable names, seems I cant just use "var" statement 😕
... View more