Description Usage Arguments Examples
View source: R/remove_small_sample_states.R
This function removes small sample states by reassigning points in those state to nearby states.
This can become necessary when in an iterative algorithm
(like mixed_LICORS
) the weights start
moving away from e.g. state j. At some point the
effective sample size of state j (sum of column
\mathbf{W}_j) is so small that state-conditional
estimates (mean, variance, kernel density estimate, etc.)
can not be obtained accurately anymore. Then it is good
to remove state j and reassign its samples to other
(close) states.
1 | remove_small_sample_states(weight.matrix, min)
|
weight.matrix |
N \times K weight matrix |
min |
minimum effective sample size to stay in the weight matrix |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.