# Testing the absence of a species in a given area from a sequential random
# sampling of 3 bouts made of 10 samples (counts) each (all absences). Upper
# criterion set to 0.9999
counts10 <- matrix(rep(0, 30), 10, 3)
test1G <- stbp_simple(data = counts10,
density_func = "poisson",
prior = 0.5,
upper_bnd = Inf,
lower_criterion = 0,
upper_criterion = 0.9999)
test1G
# returns a recommendation of "keep sampling" due to insufficient evidence.
# Testing the same hypothesis with the same upper criterion but from a
# sequential random sampling of 3 bouts made of 30 samples (counts) each
# (all absences).
counts30 <- matrix(rep(0, 90), 30, 3)
test2G <- stbp_simple(data = counts30,
density_func= "poisson",
prior = 0.5,
upper_bnd = Inf,
lower_criterion = 0,
upper_criterion = 0.9999)
test2G
# returns a recommendation of "accept H" of the species being absent from
# that area.
## End (Not run)
Run the code above in your browser using DataLab