blocks {modehunt} | R Documentation |
Computes number of observations for each block
Description
In Rufibach and Walther (2010) a new multiscale mode hunting procedure is presented that compares the local test statistics with critical values given by blocks. Blocks are collection of intervals on a given grid that contain roughly the same number of original observations.
Usage
blocks(n, m0 = 10, fm = 2)
Arguments
n |
Number of observations. |
m0 |
Initial parameter that determines the number of observations in one block. |
fm |
Factor by which |
Details
In our block procedure, we only consider a subset of all possible intervals
where
This subset is computed as follows:
Set . Then:
Include in
if
(a) \ \ (we only consider every
–th observation) and
(b) \ \ (
contains between
and
observations)
Value
–matrix, where
is the number of blocks and the columns contain the lower
and the upper number of observations that form each block.
Note
The asymptotic results in Rufibach and Walther (2010) are only derived for .
Author(s)
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Guenther Walther, gwalther@stanford.edu,
www-stat.stanford.edu/~gwalther
References
Rufibach, K. and Walther, G. (2010). A general criterion for multiscale inference. J. Comput. Graph. Statist., 19, 175–190.
See Also
This function is called by modeHuntingBlock
.