View source: R/construct_gamma.R
construct_gamma | R Documentation |
Construct the gamma parameter for the multivariate Beta (mbeta) distribution.
construct_gamma(
vars,
nu = 1,
moments = nu * (matrix(1/4, vars, vars) + diag(rep(1/4, vars))),
corr = NULL,
tol = 0.01,
input = "moments",
...
)
vars |
integer, dimension of multivariate beta distribution. |
nu |
numeric, equal to the sum of resulting gamma vector (prior observations). |
moments |
matrix, .... The entry (j,k) of |
corr |
matrix, correlation matrix, only needs to be supplied if input="corr" (default: NULL) |
tol |
numeric, if obtained momemnt matrix deviates more than |
input |
character, either "moments" (default) or "corr" |
... |
a warning is given. See details. |
A numeric vector gamma of length 2^dims suitable as a parameter for the multivariate Beta (mbeta) distribution.
construct_gamma(3, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.