Description Usage Arguments Details Value Author(s) Examples
The function takes bootstrap samples or permutes its content along the last dimension of the tensor.
1 | tensorBoot(x, replace = TRUE)
|
x |
Array of an order of at least two with the last dimension corresponding to the sampling units. |
replace |
Logical. Should sampling be performed with or without replacement. |
Assume an array of dimension r+1, where the last dimension represents the n sampling units and the first r dimensions the data per unit. The function then returns an array of the same dimension as x
where either n bootstraps samples are selected or the units are permuted.
The bootstrapped or permuted samples in an array with the same dimension as x
.
Christoph Koesner
1 2 3 4 5 6 7 8 | x <- array(1:50, c(2, 5, 5))
x
tensorBoot(x)
tensorBoot(x, replace = FALSE)
x <- array(1:100, c(2, 5, 2, 5))
x
tensorBoot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.