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.
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.