powered by
Given a BNDataset, return the sample corresponding to given index.
BNDataset
boot(dataset, index, use.imputed.data = FALSE)# S4 method for BNDataset,numeric boot(dataset, index, use.imputed.data = FALSE)
# S4 method for BNDataset,numeric boot(dataset, index, use.imputed.data = FALSE)
a BNDataset object.
the index of the requested sample.
TRUE if samples from imputed dataset are to be used. Default if FALSE.
TRUE
FALSE
bootstrap
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)) }
Run the code above in your browser using DataLab