Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reL Re: st: Fwd: e(RMSPE) in synth command
From
"Ariel Linden" <[email protected]>
To
<[email protected]>
Subject
reL Re: st: Fwd: e(RMSPE) in synth command
Date
Sat, 11 Jan 2014 11:28:52 -0500
In addition to Steve's response, the help file for -synth- provides the code
for running the placebo analysis:
Example 5 - Run placebo in space:
. tempname resmat
forvalues i = 1/4 {
synth cigsale retprice cigsale(1988) cigsale(1980) cigsale(1975) ,
trunit(`i') trperiod(1989) period(1980(1)1988)
matrix `resmat' = nullmat(`resmat') \ e(RMSPE)
local names `"`names' `"`i'"'"'
}
mat colnames `resmat' = "RMSPE"
mat rownames `resmat' = `names'
matlist `resmat' , row("Treated Unit")
Ariel
Date: Fri, 10 Jan 2014 23:18:12 -0500
From: Steve Samuels <[email protected]>
Subject: Re: st: Fwd: e(RMSPE) in synth command
To see the formula that -synth- uses, type:
. viewource synth.ado
and search for "rms".
Steve
[email protected]
On Jan 10, 2014, at 8:40 PM, Rosanna Smart wrote:
I am using the synth package (available from
http://fmwww.bc.edu/repec/bocode/s/synth.html) in Stata. I need to calculate
both the pre-period and post-period RMSPEs in order to implement the placebo
analysis. What exactly does the synth command store as e(RMSPE)? When I
calculate the RMSPE's by hand, I never seem to get this number.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/