I am trying to create a line graphic through stata by using twoway line. Sadly only a part of my formula is working right now
twoway line Abnormalreturn Year if DummyHedgefundownership==0, color(red)||
line Abnormalreturn Year if DummyHedgefundownership==1, color(blue) ||
line Stockreturn Year if DummyHedgefundownership==0, color(green) ||
line Stockreturn Year if DummyHedgefundownership==1, color(yellow),
After this , I am trying to create a legenda but it says my parentheses do not balance:
legend(label(1 "Low hedgefund ownership (Abnormal)") label(2 "High hedgefund ownership (Abnormal)") /// label(3 "Low hedgefund ownership (Stock)") label(4 "High hedgefund ownership (Stock)")) /// ytitle("Return") xtitle("Year") title("Abnormal en Stock Return from 2012-2022 per Hedgefund ownership")
It either says the command isn't regonized or that the parentheses do not balance.
twoway line Abnormalreturn Year if DummyHedgefundownership==0, color(red)||
line Abnormalreturn Year if DummyHedgefundownership==1, color(blue) ||
line Stockreturn Year if DummyHedgefundownership==0, color(green) ||
line Stockreturn Year if DummyHedgefundownership==1, color(yellow),
After this , I am trying to create a legenda but it says my parentheses do not balance:
legend(label(1 "Low hedgefund ownership (Abnormal)") label(2 "High hedgefund ownership (Abnormal)") /// label(3 "Low hedgefund ownership (Stock)") label(4 "High hedgefund ownership (Stock)")) /// ytitle("Return") xtitle("Year") title("Abnormal en Stock Return from 2012-2022 per Hedgefund ownership")
It either says the command isn't regonized or that the parentheses do not balance.
Comment