Hello, I wondered if anyone can help. I followed some guidance on here to generate new variables for the median and IQR.
I now want to generate a line graph for three variables (possibly more), each are showing the median by year. I want to add the interquartile range as a shaded area for two (mcorn and mderby) rather than as error bars (tried in excel but if the series' intersect it won't show both).
I have created variables for the 25th and 75th percentile for both 'mcorn' and 'mderby' but I don't know how to plot these. Please let me know if this is possible?!
the line graph is as follows: twoway (line medianvar1 mcorn mderby year, sort)
Thank you in advance!
I now want to generate a line graph for three variables (possibly more), each are showing the median by year. I want to add the interquartile range as a shaded area for two (mcorn and mderby) rather than as error bars (tried in excel but if the series' intersect it won't show both).
I have created variables for the 25th and 75th percentile for both 'mcorn' and 'mderby' but I don't know how to plot these. Please let me know if this is possible?!
the line graph is as follows: twoway (line medianvar1 mcorn mderby year, sort)
Thank you in advance!
Comment