Hello,
I'm trying to label the symbols of my line graph with p values (graph displays 95% CIs around each symbol). How is this done? I'm using Stata 15.
Here is my code:
Thanks so much!
I'm trying to label the symbols of my line graph with p values (graph displays 95% CIs around each symbol). How is this done? I'm using Stata 15.
Here is my code:
Code:
twoway rcap Race_Upper_ Race_Lower_ Year1 if Race == 1 & main_var == "smoker" & Categories == "1", lc(red) lwidth(vthin) /// legend( pos(1) ring(0) row(1)order(6 "NHW" 7 "NHB" 8 "MA" 9 "Others" 10 "Overall")) msymbol(Oh) ylab(0.15 "15%" 0.25"25%" 0.35"35%" 0.40 " " ) /// xlab(1 "2001-04" 2 "2005-08" 3 "2009-12" 4 "2013-16" 4.2" ") xtitle("Year of Survey") scheme(s1color) || /// rcap Race_Upper_ Race_Lower_ Year1 if Race == 2 & main_var == "smoker" & Categories == "1", lc(ebblue) lwidth(vthin) || /// rcap Race_Upper_ Race_Lower_ Year1 if Race == 3 & main_var == "smoker" & Categories == "1", lc(mint) lwidth(vthin) || /// rcap Race_Upper_ Race_Lower_ Year1 if Race == 4 & main_var == "smoker" & Categories == "1", lc(brown) lwidth(vthin) || /// rcap Race_Upper_ Race_Lower_ Year1 if Race == 5 & main_var == "smoker" & Categories == "1", lc(black) lwidth(vthin) || /// scatter Race_P_ Year1 if Race == 1 & main_var == "smoker" & Categories == "1", c(1) lc(red) mc(red) lwidth(vthin) || /// scatter Race_P_ Year1 if Race == 2 & main_var == "smoker" & Categories == "1", c(1) lc(ebblue) mc(ebblue) lwidth(vthin) || /// scatter Race_P_ Year1 if Race == 3 & main_var == "smoker" & Categories == "1", c(1) lc(mint) mc(mint) lwidth(vthin) || /// scatter Race_P_ Year1 if Race == 4 & main_var == "smoker" & Categories == "1", c(1) lc(brown) mc(brown) lwidth(vthin) || /// scatter Race_P_ Year1 if Race == 5 & main_var == "smoker" & Categories == "1", c(1) lc(black) mc(black) lpattern(dash) lwidth(vthin)
Comment