I am using the dfuller command to test for a unit root, and am looking at the critical values returned for comparison with my test statistic. Whether I include the option "drift" or do not include it, the estimated regression used to create the test statistic is the same, so I am assuming that having "drift" is just the default option for the command. I can also use the "reg" option to see the reported regression output.
My problem is that the critical values that get reported do change (and change greatly!), based on whether I specify the drift option or not, even though the estimated regression is the same. The reported test statistic is the same, the regression is the same, but the critical values (and corresponding p-value) are very different. Is this a bug, or operating as intended?
My problem is that the critical values that get reported do change (and change greatly!), based on whether I specify the drift option or not, even though the estimated regression is the same. The reported test statistic is the same, the regression is the same, but the critical values (and corresponding p-value) are very different. Is this a bug, or operating as intended?
Code:
webuse furnace dfuller input , reg dfuller input, drift reg
Comment