Compute bootstrap estimates from a neural point estimator
bootstrap(estimator, Z, B = 400, blocks = NULL, use_gpu = TRUE)
d × B
matrix, where d is the dimension of the parameter vector
a neural point estimator
either a list of data sets simulated conditionally on the fitted parameters (parametric bootstrap); or a single observed data set containing independent replicates, which will be sampled with replacement B
times (non-parametric bootstrap)
number of non-parametric bootstrap samples
integer vector specifying the blocks in non-parameteric bootstrap. For example, with 5 replicates, the first two corresponding to block 1 and the remaining three corresponding to block 2, blocks
should be c(1,1,2,2,2)
boolean indicating whether to use the GPU if it is available