Learn R Programming

sequential.pops: Sequential analysis of biological populations sizes

Tools to test sequentially hypotheses about population sizes. Two approaches are included.

  1. The sequential test of Bayesian posterior probabilities (Rincon, D.F., McCabe, I. & Crowder, D.W. 2025): This test is based on a sequence of conditional probabilities obtained from the data and can can explicitly consider simple or composite hypotheses about static or dynamic population densities and process either purely sequential (one-at-a-time) or group sequential data.
  2. The sequential probability ratio test (Wald, A. 1945): This test is based on probability ratios obtained from the likelihood of the data for two contrasted (non-complementary) hypotheses.

This package includes tools to run and evaluate sequential tests, produce charts with stop lines, and summarize results.

Copy Link

Version

Install

install.packages('sequential.pops')

Version

0.1.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Diego F Rincon

Last Published

June 5th, 2025

Functions in sequential.pops (0.1.1)

sprt

Sequential Probability Ratio Test
stbp_simple

Sequential test of Bayesian posterior probabilities for simple hypotheses about species absence
stbp_posterior_simple

Posterior calculation for simple hypotheses about species absence
stbp_posterior_composite

Posterior probability calculation for composite hypotheses
stbp_composite

Sequential test of Bayesian posterior probabilities for composite hypotheses
show,STBP-method

Displays results from a "STBP" object nicely
int_eval

Simulation of an STBP
STBP.eval

Evaluation of Sequential tests of Bayesian posterior probabilities
STBP-class

Class "STBP". Result of a Sequential tests of Bayesian posterior probabilities
plot,STBP,missing-method

Draws a plot with the sequence of posterior probabilities from a sequential test of Bayesian posterior probabilities
plot,SPRT,missing-method

Draws a plot with the cumulative introduced counts contrasted with stop lines or stop lines when no data is provided
SPRT-class

Class "SPRT". Result of a Sequential Probability Ratio Test
SPRT.eval

Evaluation of Sequential probability ratio tests
show,SPRT-method

Displays results from a "SPRT" object nicely
int_eval2

Simulation of an SPRT