Description Usage Arguments Examples
Obtain repeated draws from a (set of) given DP priors.
1 | dpprior_sim2(M, F0, sticks, N, ...)
|
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 |
... |
Named arguments to pass to to the centering function. |
1 2 3 4 | M <- 1:2
F0 <- "rbeta"
dpprior_sim2(M = M, F0 = rbeta, sticks = 100, N = 10, shape1 = 4, shape2 = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.