1. Trying to make a scatter plot to observe early timepoint (4) for one variable "cd4_pd1" against another variable "wgt_base" at a later timepoint (48). I've been tinkering with this, but stata reads the second variable as invalid
scatter wgt_base if timepoint==48 cd4_pd1 if timepoint==4
2. Trying to represent the two tx groups from above overlaid as different colors. Following scatter code with ", by(tx_p1) just generates two separate graphs. Rather than copying the code twice for each group, is there a way to use ,by(tx_p1) for layering by group?