Anyone know why the following produced different estimates?
Both should be the same, correct? Both are estimated via minimizing the SSE.
AR(1) in PROC REG:
data cej.cej;
set cej.cej;
ClosedEndJuniorLien_Bal_dif = dif(ClosedEndJuniorLien_Bal);
ClosedEndJuniorLien_Bal_dif_lag=lag(ClosedEndJuniorLien_Bal_dif);
run;
proc reg data=cej.cej;
model ClosedEndJuniorLien_Bal_dif = DEC2015 JUN2018 ClosedEndJuniorLien_Bal_dif_lag;
run;
AR(1) in PROC ARIMA
proc arima data=cej.cej;
identify var=ClosedEndJuniorLien_Bal(1) scan crosscorr=( DEC2015 JUN2018) stationarity=(adf=6);
estimate p=1 method=uls input=( DEC2015 JUN2018);
run;
Shouldnt the ULS and OLS estimates be the same? What is strange is when the series does not include the lag, the estimates are the same. Why would they be different? Does the PROC step compute lags differently than DATA step?
Thanks!