rlam: Random generation for the Dirichlet process with a gamma...

Description Usage Arguments Value

View source: R/rlam.R

Description

Random generation for the Dirichlet process with a gamma distribution as the $F_0$ base distribution.

Usage

1
rlam(n, alpha, lam0, theta0, eps = 0.01)

Arguments

n

Sample size.

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$.

eps

Tolerance limit used in the simulation algorithm. Default is 0.01.

Value

A sample of size n from the Dirichlet process.


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