Generates the bootstrap samples used to built a RFGV forest

bsamples(ntree, data, sampsize, replace)

Arguments

ntree

number of boostrap samples (i.e. the number of trees in the RFGV forest)

data

the learning data set. it must be a data frame

sampsize

an interger indicating the size of the boostrap samples

replace

a boolean indicating if sampling of cases is done with or without replacement?

Value

a list with elements - bsamples: a matrix which with 'sampsize' lines and 'B' columns which contains the indices of the observations belonging to each boostrap sample - oobsamples: a list that contains the indices of the observations belonging to each out-of-bag sample