Skip to contents

Given a BNDataset, return the sample corresponding to given index.

Usage

boot(dataset, index, use.imputed.data = FALSE)

# S4 method for BNDataset,numeric
boot(dataset, index, use.imputed.data = FALSE)

Arguments

dataset

a BNDataset object.

index

the index of the requested sample.

use.imputed.data

TRUE if samples from imputed dataset are to be used. Default if FALSE.

See also

bootstrap

bootstrap

Examples

if (FALSE) {
dataset <- BNDataset("file.data", "file.header")
dataset <- bootstrap(dataset, num.boots = 1000)

for (i in 1:num.boots(dataset))
   print(boot(dataset, i))
}