Dear Stata users,
Is it possible to have the same color for 95 CI in all groups? I am using the following code:
twoway (scatter coef species if (species==1 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species==1 & country==1)) ///
(scatter coef species if (species>1 & species<4 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species>1 & species<4 & country==1)) (line coef species if (species>1 & species<4 & country==1), lwidth(thick) lcolor(navy) connect(direct)) ///
(scatter coef species if (species>3 & species<7 & country==1), msymbol(S) msize(medium) mcolor(red) ) ///
(rcap ci_up ci_low species if (species>3 & species<7 & country==1)) (line coef species if (species>3 & species<7 & country==1), lwidth(thick) lcolor(navy) connect(direct)), ///
xlabel( 1 "2 conif" 2 "1 broad" 3 "2 broad" 4 "2 mix" 5 "3 mix" 6 "3 mix" ) ///
ytitle(km) yline(0, lpattern(dash) lc(black)) legend(off)
I can restrict the color of lines and markers to be the same in all groups but the colors of 95 CIs change across groups. Is there a way to have them the same in all groups? I've attached the graph that I get.
Thank you
Related Posts with Color of Confidence Intervals
Understanding Stata's default yscale() choiceHi everyone, I am trying to find out how Stata chooses the exact default range of the y-axis. The a…
Propensity score matchingHi all, I am currently trying to run PSM on STATA14 to compare effect of treatment 1 vs treatment 2…
Adding controls, insignificant treatment var turns significantDear friends, I am running a Fixed Effects regression to test the effect of a policy on firms' pate…
Error message on assigning different methods of obtaining start values for latent class analysisHi all, I am running a 3-class latent class model on 17 categorical indicators and keep getting err…
CAPM OLS event study calculating CAR for multiple companies at the timeHello Stata friends, I am conducting a CAPM event study with 34 events and eight different companie…
Subscribe to:
Post Comments (Atom)
0 Response to Color of Confidence Intervals
Post a Comment