Hi Everyone,
I am trying to replicate the synthetic control method implemented by Abadie,Diamond, and Hainmueller.
I am using the following commands:
use "synth_smoking.dta"
tsset state year
synth cigsale beer lnincome retprice age15to24 cigsale(1988) cigsale(1980) cigsale(1975), trunit(3) trperiod(1989) xperiod(1980(1)1988) nested
Later I do placebo test using the following command:
tempname resmat
forvalues i = 1/4 {
synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) , trunit(`i') trperiod(1989) xperiod(1980(1)1988) keep(test`i')
matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
local names `"`names' `"`i'"'"'
}
mat colnames `resmat' = "RMSPE"
mat rownames `resmat' = "names"
matlist `resmat' , row("Treated Unit")
and I get the results but I do not know how to plot the results. Could anyone help me with plotting the results of the placebo test in a single graph?
I am not a native English speaker and also am new to Stata and econometrics; I am sorry if I used wrong terminology.
Thank you very much!
Related Posts with Stata Command for Graphing placebo test results
Please advice how to combine the rates of few years together and compare with another interval?Hello, I am trying to combine the yearly rates reported for 2007, 2008 and 2009 together to compare…
Grouping Variables?Working to group multiple variables with same description under the same name in a table. Variables …
Help Needed: Simple Linear Regression and Significance QuestionsHi Everyone! I'm relatively new to STATA and statistics, so I thought I would come to this forum fo…
bar graph / blabel()I'm creating bar graphs with similar code: graph bar var1 var2 var3 var4, /// over(race, relabel (1…
Show the formula that the -predict- command uses?Hello everyone! I'm new here and also very new to STATA, although I really enjoy statistics. I have…
Subscribe to:
Post Comments (Atom)
0 Response to Stata Command for Graphing placebo test results
Post a Comment