bss.ci.Poigam: Bayesian sample size using ACC or ALC criterion for the...

Description Usage Arguments Value

View source: R/bss.ci.Poigam.R

Description

Bayesian sample size using ACC or ALC criterion for the Poisson/gamma model

Usage

1
2
bss.ci.Poigam(crit, lam0, theta0, w, rho, len = NULL, len.max = NULL,
  R = 1000, n0 = 1)

Arguments

crit

A characther string specifying the criterion. Criteria: "ACC", "ALC" and "ALCApprox".

lam0

A positive real number representing the prior expected value for the prior gamma distribution.

theta0

A positive real number representing the shape parameter for the prior gamma distribution.

w

A positive real number representing the aliquot volume.

rho

A number in (0, 1). The probability of the credible interval is equal or greater than $1-rho$ depending on the criterion used.

len

A positive real number representing the length of the credible intervals in the ACC criterion.

len.max

A positive real number representing the maximum length of the credible intervals in the ALC criterion.

R

Number of replicates used in the simulation. Default is 1000.

n0

A positive integer representing the initial sample size in which the function will check the criterion. Default is 1.

Value

An integer representing the sample size.


eliardocosta/ssdet documentation built on Dec. 14, 2021, 6:27 a.m.