Description Usage Arguments Value Author(s) References Examples
View source: R/prior_unif_dirichlet.R
The function generates a (r,r,p,p)-array filled with uniform counts for the hyper-Dirichlet distribution used as prior in lweights_multinomial when there are p variables with r levels.
Neq
is the equivalent prior sample size.
1 | prior_unif_dirichlet(p, r, Neq = 0.5 * r^2)
|
p |
Number of variables. |
r |
Number of levels. |
Neq |
Equivalent sample size. |
prior |
A (r,r,p,p)-array containings counts. |
Lo<c3><af>c Schwaller
This package implements the method described in the paper "Bayesian Inference of Graphical Model Structures Using Trees" by L. Schwaller, S. Robin, M. Stumpf, 2015 (submitted and availavable on arXiv).
1 2 3 4 | library('saturnin')
p <- 100
r <- 10
prior <- prior_unif_dirichlet(p,r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.