Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Storing test statistics from dfuller output


From   Dani Tilley <tilleydani@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Storing test statistics from dfuller output
Date   Sun, 4 Jul 2010 10:33:11 -0700 (PDT)

Hi,

I need to run -dfuller- tests on several countries and collect the test statistic from each, store it, and compute its mean (or possibly divide by a scalar). I tried the following but didn't get what I was looking for. 


quietly levelsof(country)
gen pm=.
foreach a in `r(levels)' { 
quietly dfuller cpi if country==`a', lags(3)
replace pm = r(Zt) if country==`a'
}

Any help would be appreciated.

Thanks,
DF Tilley


      
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index