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
How to loop through multiple locals instead of all variables inside each local? Code: local ipv "angry fear intimacy_idx cont12_idx ev12_idx pv12_idx sv12_idx ipv_ovall_idx" local…
How to loop through two locals instead of all variables inside each local Code: local ipv "angry fear intimacy_idx cont12_idx ev12_idx pv12_idx sv12_idx ipv_ovall_idx" lo…
Latent growth curve modelingDear experts, I am currently trying to fit an unconditional growth curve model (as a first step befo…
Transformation of valuesHi, I have a data set on tumors with the variables karnofsky index/KI (categorical with values 40, …
keep observations if first 2 character of the string is capital letterI have a dataset where the variable x is a string. I need to keep only observations at which the fir…
Subscribe to:
Post Comments (Atom)
0 Response to ) required
Post a Comment