Least squares autoregression with near-unit root