Description Usage Arguments Details Value See Also Examples
Functions to convert between shape parameters a and b for beta distribution and parameters mu (mean) and rho (dispersion).
1 2 3 |
a,b |
shape parameters for beta distribution. Must be >0. |
checkArgs |
single boolean specifying whether arguments should be checked for adherence to specifications. DEFAULT: FALSE |
mu,rho |
mean and dispersion parameters for beta distribution, respectively. Must be in (0,1) interval, although rho is allowed to take on value of 0 (binomial distribution). |
getMuRho takes in shape parameters a and b and returns list with parameters mu (a/(a+b)) and rho (1/(a+b+1)). The function is vectorized (both a and b can be vectors (of the same length) or matrices (of the same dimension)).
getAB takes in shape mean and dispersion parameters mu and rho and returns shape parameters a (mu*(1/rho-1)) and b ((1-mu)*(1/rho-1)). The function is vectorized (both mu and rho can be vectors (of the same length) or matrices (of the same dimension)).
getMuRho returns a list with 2 elements: mu and rho (vectors, if the arguments a and b are vectors).
getAB returns a list with 2 elements: a and b (vectors, if arguments mu and rho are vectors). For values of rho=0, the resulting entries are NA.
Other bbFunctions: vectorizedRbetabinomAB
,
vectorizedRbetabinomMR
,
vectorizedRbetabinomMR
Other bbFunctions: vectorizedRbetabinomAB
,
vectorizedRbetabinomMR
,
vectorizedRbetabinomMR
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.