Learn R Programming

itsmr (version 1.9)

season: Estimate seasonal component

Description

Estimate seasonal component

Usage

season(x, d)

Value

Returns a vector the same length as x. Subtract from x to obtain residuals.

Arguments

x

Time series data

d

Number of observations per season

See Also

trend

Examples

Run this code
y = season(deaths,12)
plotc(deaths,y)

Run the code above in your browser using DataLab