Description Usage Arguments Value
Random generation for the functional mean of the Dirichlet process with a gamma distribution as the $F_0$ base distribution.
1 | rlambar(N, alpha, lam0, theta0, ncore, eps = 0.1)
|
N |
Number of observations. |
alpha |
Shape parameter of the Dirichlet process. |
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$. |
ncore |
Number of cores to use in parallel computin. If NULL the function uses 1 core if there is only one core, if there is more than one cores uses one half of the cores. |
eps |
Tolerance limit used in the simulation algorithm. |
A random sample of the functional mean of the Dirichlet process.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.