seasrescheck {season} | R Documentation |
Tests the residuals for any remaining seasonality.
seasrescheck(res)
res |
residuals from some regression model. |
Plots: i) histogram of the residuals, ii) a scatter plot against residual order, iii) the autocovariance, iv) the cumulative periodogram (see cpgram
)
Adrian Barnett a.barnett<at>qut.edu.au
# cardiovascular disease data # (use an offset of the scaled number of days in a month) data(CVD) model<-cosinor(cvd~1,date=month,data=CVD,type='monthly', family=poisson(),offsetmonth=ndaysmonth/(365.25/12)) seasrescheck(resid(model))