Description Usage Arguments Value
Bayesian sample size using ACC or ALC criterion for the Poisson/Dirichlet process model
1 2 3 | bss.ci.PoiDP(crit, lam0, theta0, w, rho, alpha, len = NULL,
len.max = NULL, eps = NULL, cgrid = 0.01, R = 100, n0 = 2,
inc = c(100, 10, 5))
|
crit |
A characther string specifying the criterion. Criteria: "ACC" and "ALC". |
lam0 |
A positive real number representing a hyperparameter of the $F_0$ base distribution. |
theta0 |
A positive real number representing a hyperparameter of the $F_0$ base distribution. We consider $F_0$ as the gamma distribution with mean $lam_0$ and shape parameter $theta_0$. |
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. |
alpha |
Shape parameter of the Dirichlet process. |
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. |
eps |
... |
cgrid |
Length of the grid used in the points for which the probability is computed. |
R |
Number of replicates used in the simulation. Default is 100. |
n0 |
A positive integer representing the initial sample size in which the function will check the criterion. Default is 1. |
inc |
... |
An integer representing the sample size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.