Helper function for the easy creation of an index to bootstrap.
Each element has the same number of samples.
Usage
boot_index(samples, boots)
Arguments
- samples
A numeric value of samples.
- boots
A numeric value of bootstraps you want.
Value
A list of length boots
with indices for the samples.
Examples
boot_index(10, 3)
#> [[1]]
#> [1] 10 4 8 9 7 5 1 10 3 2
#>
#> [[2]]
#> [1] 7 5 6 8 3 1 8 9 7 8
#>
#> [[3]]
#> [1] 3 10 3 8 1 4 7 3 3 4
#>