powered by
correlation based multiplicative seasonality test.
mseastest( y, m = NULL, type = c("pearson", "spearman", "kendall"), cma = NULL, sn = 1, alpha = 0.05, outplot = c(0, 1, 2) )
A list with the following:
is.multiplicative: if TRUE the test found evidence of multiplicative seasonality.
is.multiplicative
TRUE
statistic: test statistic.
statistic
pvalue: p-value of the test.
pvalue
input time series. Can be ts object.
ts
seasonal period. If y is a ts object then the default is its frequency.
y
type of correlation
"pearson"
"spearman"
"kendall"
input precalculated level/trend for the analysis. Use NULL to calculate internally.
NULL
number of seasonal periods of decreasing magnitude to consider for the test.
significance level.
type of output plot:
0: none.
0
1: scatter plot.
1
2: time series plot.
2
Nikolaos Kourentzes, nikolaos@kourentzes.com.
mseastest(referrals)
Run the code above in your browser using DataLab