rdirdirgamma_beta_cpp: Generate a Dirichlet-Dirichlet-Gamma population (safer).

Description Usage Arguments Details Value See Also

View source: R/RcppExports.R

Description

Generate samples from m sources and p parameters, n sample per source. The between-source alpha hyperparameter used to generate the source parameters is mandatory.

Usage

1
rdirdirgamma_beta_cpp(n, m, alpha_0, beta_0, nu_0)

Arguments

n

number of samples per source

m

number of sources

alpha_0

between-source Gamma hyperparameter, a scalar

beta_0

between-source Gamma hyperparameter, a scalar

nu_0

between-source Dirichlet hyperparameter, a numeric vector

Details

RNG

this function uses R's RNG seed.

Value

a matrix with n*m rows

See Also

Other RNG functions: rdirdirgamma_cpp(), rdirichlet_beta_cpp(), rdirichlet_cpp()


lgaborini/rdirdirgamma documentation built on March 6, 2021, 3:05 p.m.