I am wondering how to add standard deviation lines to a timeseries graph I made (xtline)
I calculated the standard deviation already, just unsure of how to plot as upper and lower error bars to the main value of interest.
I calculated the standard deviation already, just unsure of how to plot as upper and lower error bars to the main value of interest.
Code:
collapse (mean) adhpc = adhpc (sd) sdadhpc=adhpc, by(subject1 visitdate1) xtset subject1 visitdate1 xtline adhpc sdadhpc, legend(off)
Comment