ddir | R Documentation |
Evaluate the density of a Dirichlet distribution
ddir(x, q, logscale=TRUE)
x |
Vector or matrix containing the value at which to evaluate the density. If a matrix, the density is evaluated for each row. Rows are renormalized to ensure they add up to 1 |
q |
Dirichlet parameters. Must have the same length as
|
logscale |
For |
Density of a Dirichlet(q) distribution evaluated at each row of x
David Rossell
library(mombf)
x= matrix(c(1/3,2/3,.5,.5),nrow=2,byrow=TRUE)
ddir(x,q=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.