RunTime {BTSPAS}R Documentation

Compute percentiles of the run timing distribution.

Description

Take the posterior sample of U[1,...nstrata] and compute the percentiles of the run timing. This uses the quantile() function from the "actuar" package which is designed to compute quantiles of grouped data.

Usage

RunTime(time, U, prob = seq(0, 1, 0.1))

Arguments

time

List of sample weeks. It is assumed that there are no salmon prior to the first value

U

matrix of posterior samples. Each row is a sample from the posterior.

prob

Quantiles of the run timing to estimate.

Value

An MCMC object with samples from the posterior distribution. A series of graphs and text file are also created in the working directory. This information is now added to the fit object as well and so it is unlikely that you will use this function.

Author(s)

Bonner, S.J. sbonner6@uwo.ca and Schwarz, C. J. cschwarz.stat.sfu.ca@gmail.com.

References

Bonner, S. J., & Schwarz, C. J. (2011). Smoothing population size estimates for Time-Stratified Mark-Recapture experiments Using Bayesian P-Splines. Biometrics, 67, 1498-1507. https://doi.org/10.1111/j.1541-0420.2011.01599.x

Schwarz, C. J., & Dempson, J. B. (1994). Mark-recapture estimation of a salmon smolt population. Biometrics, 50, 98-108.

Schwarz, C.J., D. Pickard, K. Marine and S.J. Bonner. 2009. Juvenile Salmonid Outmigrant Monitoring Evaluation, Phase II - December 2009. Final Technical Memorandum for the Trinity River Restoration Program, Weaverville, CA. 155 pp. + appendices available at https://www.fws.gov/arcata/fisheries/reports/technical/TR_Final_Report.pdf


[Package BTSPAS version 2021.1.1 Index]