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
Store and export p values from pwcorr in a loopI am running correlations for ~3,000 variables. The nuance of the usefulness of p values versus conf…
confidence intervals around proportion on multilevel dataHi, I’m doing an analysis of applications and selections for grants. I do not have a way to identif…
Dummy based on a continuous condition. …
nlcom followed by sureg gives error "last estimates not found"I'm trying to estimate direct and indirect effects for a logit model with multiple imputation. I ha…
Reshape multiple years observations from wide to longDear all, my current data structure is as follows: DATA CompanyID 2011 2012 2013 … 2019 VarOfIn…
Subscribe to:
Post Comments (Atom)
0 Response to Stata Command for Graphing placebo test results
Post a Comment