powered by
durbinH test the serial correlation of a dynamic regression, namely, a time series regression with AR(1) terms. It modifies Durbin-Watson statictic.
durbinH(model,Ly.label="ar1")
Estimation result object by, for example, dynlm or arima
Label of AR(1) dependent variable
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
data(macrodata) y=ts(macrodata[,"OECD"],start=c(1961,1),freq=12) #OECD business cycle index out1=dynlm::dynlm(y~L(y,1)+season(y)+trend(y)) durbinH(out1,Ly.label="L(y, 1)")
Run the code above in your browser using DataLab