powered by
Uses Base R routine lm to simplify call for SLR where independent variable is automatocally t=1:n
slr.wge(x)
Residuals
Estimate b0 in model y=b0+b1*t+Z
Estimate b1
pvalue for test:slope=0
tstatistic associated with test:slope=0
The TVF data set
Wayne Woodward
Applied Time Series Analysis with R, second edition by Woodward, Gray, and Elliott
x=gen.arma.wge(n=100,phi=.96,sn=10) y=slr.wge(x)
Run the code above in your browser using DataLab