View source: R/NeighborhoodEstimation.R
setupStabilityIndex | R Documentation |
Stability selection is samples without replacement. This initializes the sampling indices so that we can parallelize without worrying about the state of the random number generator (and recover from errors)
setupStabilityIndex(obs, strata = rep(1, nrow(obs)), B = 50, seed = 12345)
obs |
a matrix of observations from which rows will be sampled |
strata |
an optional vector of stratifying covariates, over which the sampling will be balanced |
B |
Number of resamples |
seed |
random seed |
list length B
of indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.