Description Usage Arguments Value Examples
Estimate the power of the random thinning test based on the properties a given time-series
1 2 3 | calculatePower(ts, p, nMC = 1000, nThin = 1000, its = NULL,
fr = c(0.001, 0.025, 0.01, 0.025, 0.1), pThreshold = 0.05,
useNApattern = FALSE)
|
ts |
A time-series (a numeric vector) |
p |
Length of the period to test for (a positive integer) |
nMC |
Number of samples to estimate the power (a positive integer) |
nThin |
Number of resamples to use in the random thinning test (a positive integer) |
its |
Indices of which bin the values of x correspond to (a numeric vector of integers between 1 and p). This is optional, and taken to be cyclical by default. |
fr |
Which fractions to consider discarding (a numeric vector, with values between 0 and 1, although it is best if they are kept between between 0.001 and 0.2) |
pThreshold |
P-value threshold to use when calculating the power (a positive scalar between 0 and 1, although it is recommended to be around 0.05) |
useNApattern |
Logical value - if |
A numeric vector, with one entry per value of fr
, giving the power of the test for this particular value
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.