seasrescheck: Seasonal residual checks

Description Usage Arguments Details Author(s) Examples

View source: R/seasrescheck.R

Description

Tests the residuals for any remaining seasonality.

Usage

1

Arguments

res

residuals from some regression model.

Details

Plots: i) histogram of the residuals, ii) a scatter plot against residual order, iii) the autocovariance, iv) the cumulative periodogram (see cpgram)

Author(s)

Adrian Barnett a.barnett<at>qut.edu.au

Examples

1
2
3
4
5
6
# 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=TRUE)
seasrescheck(resid(model))

season documentation built on May 2, 2019, 5:22 p.m.