dpprior_sim2: Simulate many Distributions from DP Priors

Description Usage Arguments Examples

Description

Obtain repeated draws from a (set of) given DP priors.

Usage

1
dpprior_sim2(M, F0, sticks, N, ...)

Arguments

M

Integer. Value of the scaling parameter in the DP prior. May be a vector.

F0

A character. Function for the centering distribution in the DP prior.

sticks

An integer. The number of sticks to break when simulating from DP(M, F_0) using the stick breaking construction.

N

An integer. The number of distributions to simulate for each value of M.

...

Named arguments to pass to to the centering function.

Examples

1
2
3
4
M <- 1:2
F0 <- "rbeta"

dpprior_sim2(M = M, F0 = rbeta, sticks = 100, N = 10, shape1 = 4, shape2 = 1)

sctyner/dprocsim documentation built on June 30, 2019, 11:51 a.m.