rSBM: Simulate from sparse stick-breaking mixture prior

Description Usage Examples

Description

Simulate from sparse stick-breaking mixture prior

Usage

1
2
rSBM(K, p_small, p_large = 0, eta, gam, del, logout = FALSE,
  logcompute = TRUE)

Examples

1
2
3
4
5
a = c(5, 2, 3)
K = length(a)
rSBM(K=K, p_small=0.5, p_large=0.0, eta=1.0e3, gam=1.5, del=1.5)
gamdel = shape_Dir2genDir(a) # tapered parameters to mimic Dirichlet special case
rSBM(K=K, p_small=0.5, p_large=0.0, eta=1.0e3, gam=gamdel[,1], del=gamdel[,2]) # tapered to mimic Dirichlet special case

mheiner/sparseProbVec documentation built on May 19, 2019, 6:22 p.m.