# Loading the package
library(plpoisson)
set.seed(2021L)
# Number of observed time windows
n <- 555L
# Simulating a dataset
data <- cbind.data.frame(
occ_obs = rpois(n, rgamma(n, 5.5, .5)),
win_siz = rgamma(n, 1.44, .777)
)
## Compute bootstrap estimates using all methods
hyperbootstrap(data$occ_obs, 10L) # only 10 iterations
Run the code above in your browser using DataLab