boot: get selected element of bootstrap list.

Description Usage Arguments See Also Examples

Description

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

Usage

1
2
3
4
boot(dataset, index, use.imputed.data = FALSE)

## S4 method for signature '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

1
2
3
4
5
6
7
8
## Not run: 
dataset <- BNDataset("file.data", "file.header")
dataset <- bootstrap(dataset, num.boots = 1000)

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

## End(Not run)

tavazzie/bnstructScore documentation built on Dec. 23, 2021, 7:47 a.m.