durbinH | R Documentation |
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")
model |
Estimation result object by, for example, dynlm or arima |
Ly.label |
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)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.