NNS.seas: NNS Seasonality Test

Description Usage Arguments Value Author(s) References Examples

View source: R/Seasonality_Test.R

Description

Seasonality test based on the coefficient of variance for the variable and lagged component series. A result of 1 signifies no seasonality present.

Usage

1
NNS.seas(variable, plot = TRUE)

Arguments

variable

a numeric vector.

plot

logical; TRUE (default) Returns the plot of all periods exhibiting seasonality and the variable level reference.

Value

Returns a matrix of all periods exhibiting less coefficient of variance than the variable with "all.periods"; and the single period exhibiting the least coefficient of variance versus the variable with "best.period". If no seasonality is detected, NNS.seas will return ("No Seasonality Detected").

Author(s)

Fred Viole, OVVO Financial Systems

References

Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" http://amzn.com/1490523995

Examples

1
2
3
4
5
set.seed(123)
x <- rnorm(100)

## To call strongest period based on coefficient of variance:
NNS.seas(x)$best.period

NNS documentation built on April 15, 2019, 5:05 p.m.