powered by
Performs the Cochrane-Orcutt to test for a linear trend in a time series realization.)
co.wge(x,maxp=5)
Residuals from the fitted line
Estimated y-intercept of the fitted line using the CO method
Estimated slope of the fitted line using the CO method
Order, p, fit to the residuals
Coefficients of the AR model fit to the residuals
P-value of the CO test for the significance of the slope
Cochrane-Orcutt test statistic.
Realization
Maximum AR order allowed for AR model fit to residuals from least squares line
Wayne Woodward
"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott
data(global.temp) co.wge(global.temp,maxp=5)
Run the code above in your browser using DataLab