select_cases: Select cases for adding / keeping in data set

Description Usage Arguments Value

View source: R/resampling_utils.R

Description

Select cases for adding / keeping in data set

Usage

1
select_cases(obs.ind, C.perc, repl, prob = NULL, epsilon = 1e-04)

Arguments

obs.ind

Named vector of target values

C.perc

Percentage of cases to select from obs.ind

repl

A Boolean value controlling whether replication is allowed when re-sampling observations. Defaults to FALSE when under-sampling and to TRUE when over-sampling or adding Gaussian noise.

prob

Named vector of selection probability. Defaults to NULL.

epsilon

Mimimum probability value to add to prob after normalization.

Value

Vector containing selected observation names


mrfoliveira/STResampling-JDSA2020 documentation built on June 28, 2021, 7:01 p.m.