Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72772

-dfuller- of 69 variables between 27 cross-section units

$
0
0
Hello statalisters,
I have to perform a -dfuller- in 69 variables in 27 cross-section units, and if I do one by one it will take forever, -esttab- and -esttout- didn't work for me so I tried: Code:

levelsof id forval num = 1/69 { gen dfnotrend`num'=. } forval num = 1/69 { foreach a in `r(levels)' { dfuller y`num' if id==`a', lags(2) replace dfnotrend`num' = r(Zt) if id==`a' } }
Stata is only storing the dfnotrend1 ( for variable y1) , can someone shed some light on this matter, please? Thanks a lot.

Viewing all articles
Browse latest Browse all 72772

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>