rlambar.xn: Random generation for the posterior functional mean of the...

Description Usage Arguments Value

View source: R/rlambar.xn.R

Description

Random generation for the posterior functional mean of the Poisson/Dirichlet process with a gamma distribution as the $F_0$ base distribution.

Usage

1
rlambar.xn(N, alpha, x, w, lam0, theta0, ncore)

Arguments

N

Number of observations.

alpha

Shape parameter of the Dirichlet process.

x

Observed counts of the Poisson distribution of the model.

w

A positive real number representing the aliquot volume.

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.

Value

A random sample of the posterior functional mean of the Poisson/Dirichlet process.


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