Hi, I am relatively new to stata and am currently trying to run the dfuller unit-root test with regression and trend on a panel/time-series of different minerals.
While looping over the respective panels results in the desired output (see below example for panel "Arsenic") I am wondering how I can access the individual results.
In my case I would like to extract from each regression table the coefficient for _trend (and its p-value).
However, according to Stata dfuller only stores the following results:
----------------
dfuller stores the following in r():
Scalars
r(N) number of observations
r(lags) number of lagged differences
r(Zt) Dickey-Fuller test statistic
r(p) MacKinnon approximate p-value (if there is a constant or trend in associated regression)
----------------
If anyone has an idea how to access the other results as well I would be very thankful (I want to store these results in a matrix while looping over all the minerals).
Cheers,
Alex

While looping over the respective panels results in the desired output (see below example for panel "Arsenic") I am wondering how I can access the individual results.
In my case I would like to extract from each regression table the coefficient for _trend (and its p-value).
However, according to Stata dfuller only stores the following results:
----------------
dfuller stores the following in r():
Scalars
r(N) number of observations
r(lags) number of lagged differences
r(Zt) Dickey-Fuller test statistic
r(p) MacKinnon approximate p-value (if there is a constant or trend in associated regression)
----------------
If anyone has an idea how to access the other results as well I would be very thankful (I want to store these results in a matrix while looping over all the minerals).
Cheers,
Alex
Comment