prior_unif_dirichlet: Uniform prior counts for the hyper-Dirichlet distribution.

Description Usage Arguments Value Author(s) References Examples

View source: R/prior_unif_dirichlet.R

Description

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.

Usage

1
prior_unif_dirichlet(p, r, Neq = 0.5 * r^2)

Arguments

p

Number of variables.

r

Number of levels.

Neq

Equivalent sample size.

Value

prior

A (r,r,p,p)-array containings counts.

Author(s)

Lo<c3><af>c Schwaller

References

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).

Examples

1
2
3
4
library('saturnin')
p <- 100
r <- 10
prior <- prior_unif_dirichlet(p,r)

saturnin documentation built on May 1, 2019, 10:18 p.m.