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
Should I rename all the variables with the year immediately following the original variable names when I merge data across years with loopI run the following code: local i = 1998 while `i' < 2007{ local j=`i'+1 **step 10: match by …
Rescaling TimeHi Statlist, I have the following problem. I have a panel dataset of the form: Code: * Example gen…
Tokenize and looping through tokensHi Statlist, I have the following problem. I have defined 3 local variables defining the path to so…
Error Using the Command 'using'Hello everyone, I just downloaded data from PSID. Every time I run the do.file that comes with the …
Creating a variable with three condtionsI am using a data set of 50 countries which are separated into four regions. I want to create a vari…
Subscribe to:
Post Comments (Atom)
0 Response to ) required
Post a Comment