I've been struggling to figure out how to plot a variable over time by group showing mean+/-SD, and by patient id, similar to graph shown in the attached (generated using other software). So far I've been tinkering with a variety of twoway connected options, but can't get anything close to what I'm trying to achieve.
Plotting longitudinal data by patient id and by group mean+/-SD
by Louise Wagensonner -
Number of replies: 1
In reply to Louise Wagensonner
Re: Plotting longitudinal data by patient id and by group mean+/-SD
by Kristen -
Good question. We did not discuss plotting survival data in class. sts graph is a good option.
help sts graph
note that you will first need to tell stata that the data is survival data using the "stset" function.
Feel free me if you need help with the code.