permutAD | R Documentation |
This function generates a new time serie with exactly the same relative frequency as the original one, and a similar auto-dependence by cutting the original variable in segments and shuffeling these segements.
permutAD(vec, nBloks = 10)
vec |
Time series vector |
nBloks |
positive integer indicating the number of segements/blocks (default 10) |
Time series vector with exactly the same relative frequency and a similar auto-dependence as the original vector
ts=rep(c(1,1,1,1,1,0,0,0),15) permutAD(ts,nBloks=11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.