Hi SAS programmers, Could you please help me with this problem? I don't even know where to start learning how to do this and not sure whether it is possible. This is the data: data a; input id time therapy; cards; 1 1 0 1 2 0 1 3 1 1 4 1 2 1 2 2 2 2 2 3 2 2 4 0 3 1 1 3 2 1 3 3 0 3 4 1 4 1 1 4 2 1 4 3 1 4 4 1 ; run; I need to create a time-independent indicator variable that takes the value of 1 if subject's therapy became 0 after being 1, or 2; and 0 otherwise. So, suppose therapy=0 means no therapy, while therapies 1 and 2 are types of therapy. If 0 precedes 1 or 2, it is considered it to be normal, while if it follows 1 or 2, it means discontinuation of therapy, which required attention. I ultimately need to know how many people discontinued therapy. Is it at all possible to do in SAS? Thank you!
... View more