Simulate many Distributions from DP Posteriors

1 | ```
dppost_sim2(M, F0, sticks, dat, N, ...)
``` |

`M` |
An integer. The precision parameter in a Dirichlet Process Prior. |

`F0` |
Either a function or a non-empty character string naming the function to be called. |

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

`dat` |
A vector. Observed data. |

`N` |
An integer. The number of distributions to simulate for each value of |

`...` |
Named arguments to pass to to the centering function. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.