ts_permtest_block | R Documentation |
Use block randomistion to get a permutation test evaluation of the deviation of an observed value at each time point from a target value. To do block permutation without any tests, pass NULL
for argument targetValue
.
ts_permtest_block(
y1,
y2 = NULL,
targetValue = 0,
Nperms = 19,
sim = "geom",
l = 3,
alpha = 0.05,
returnBootObject = FALSE,
...
)
y1 |
Time series 1. The goal of the permutation test will be to decide whether the difference |
y2 |
An optional second time series. If this timeseries is provided then the goal of the permutation test will be the to decide wether the difference |
targetValue |
The target value for the permutation test. If |
Nperms |
Number of permutations (default = |
sim |
Value passed to the |
l |
Block sizes to use, see |
alpha |
Alpha level for deciding significance (default = |
returnBootObject |
Return the |
... |
Other arguments passed to function |
A data frame with the difference time series and variables indicating N and significance.
Other Time series operations:
ts_center()
,
ts_changeindex()
,
ts_checkfix()
,
ts_detrend()
,
ts_diff()
,
ts_discrete()
,
ts_duration()
,
ts_embed()
,
ts_integrate()
,
ts_levels()
,
ts_peaks()
,
ts_permtest_transmat()
,
ts_rasterize()
,
ts_sd()
,
ts_slice()
,
ts_slopes()
,
ts_standardise()
,
ts_sumorder()
,
ts_symbolic()
,
ts_trimfill()
,
ts_windower()
set.seed(4321)
y1 <- rnorm(5000)
y2 <- y1-(mean(y1)+rnorm(1))
ts_permtest_block(y1 = y1, y2 = y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.