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))
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.
1: scatter plot.
2: time series plot.
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
# NOT RUN { mseastest(referrals) # }
Run the code above in your browser using DataCamp Workspace