Hello, I am writing a code to plot a difference in differences, I have the following:
twoway (scatter price_index Year if Treatment == 1, msymbol(O) mcolor(blue)) ////
(scatter price_index Year if Treatment == 0, msymbol(O) mcolor(red)) ////
legend(label(1 "Treatment") label(2 "Control")) ///
ytitle("Price index") xtitle("Year") ///
vertical(2021, lpattern(dash)) ///
title("Price Index Chart by Treatment")
But when I run the code I get the error ") required". Honestly, I can't see where I'm missing the ")". I would really appreciate your help.
Regards.
Related Posts with ) required
Stata: Statistics vs "Data Science"I have recently joined a company heavy in "Data Science". I thought, great, I love statistics myself…
how to use stata discretizing a continuous variable optimally?Hi guys, I just meet an interesting problem. My boss asked me to recode a continuous variable, for …
Is there any chance that the coefficient of a dummy variable receiving the value higher than 1?Today when I run a regression (in specific Difference-in-Differences but I think it does not matter …
Not able to install rcall from GithubHi users, I am trying to install the stable version of the rcall from GitHub from the STATA command …
Combining/Overlaying Interrupted Time Series Graphs Generated From the ITSA Command?Hi folks, I have two separate single-group interrupted time-series graphs generated using the -itsa-…
Subscribe to:
Post Comments (Atom)
0 Response to ) required
Post a Comment