seasonality_calc: Seasonality

Description Usage Arguments Details Value Author(s) See Also

View source: R/helpers.R

Description

Calculates seasonality based on seasonally-interpolated vector.

Usage

1
seasonality_calc(interpolated_seasons, resid_time_series)

Arguments

interpolated_seasons

A numeric vector containing predicted (interpolated) de-trended residuals as obtained by function monthly_bins.

resid_time_series

A numeric vector containing unpredicted de-trended residuals as obtained by function monthly_bins.

Details

Three types of seasonality are returned currently: an 'absolute' seasonality which corresponds to the sample variance of interpolated_seasons; an unbounded seasonality which corresponds to the ratio between sample variances of interpolated_seasons and resid_time_series; and a 'bounded' seasonality which corresponds to the sample variance of interpolated_seasons relative to the total summed variances of both interpolated_seasons and resid_time_series.

Value

A list containing the sample variance of interpolated_seasons, resid_time_series, and the resulting seasonality. See details.

Author(s)

Diego Barneche and Scott Burgess.

See Also

monthly_bins, seasonality_and_colour.


dbarneche/envPred documentation built on June 28, 2020, 5:04 p.m.