setupStabilityIndex: Set up the subsamples that will be taken for stability...

View source: R/NeighborhoodEstimation.R

setupStabilityIndexR Documentation

Set up the subsamples that will be taken for stability selection

Description

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)

Usage

setupStabilityIndex(obs, strata = rep(1, nrow(obs)), B = 50, seed = 12345)

Arguments

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

Value

list length B of indices


amcdavid/HurdleNormal documentation built on May 14, 2022, 11:12 p.m.