Description Usage Arguments Details Value Examples
(ba) from beta distributions generates the joint probability table for p (=length(n)) categoric variables coming from the discretization of the betas (approximately equal spaced discretized).
1 | categ3betap(co=c(1, 1), re=c(2, 2), n=c(3, 4, 5), xnames=rbsb.cha0)
|
co |
) First parameter when calling categ3beta2. |
re |
) Second parameter when calling categ3beta2. |
n |
) Number of classes to use for the p variables. Its length provides the number of variables. |
xnames |
dimnames of the resulting probability array. The default generates some standard names. |
The central idea is the product of pairs of beta obtained from categ3beta2. For instance, in case of p=3, if P1(i,j) is associated to the first two variables, P2(i,k) is associated to the first and last variables \& P3(j,k) is associated to the last two variables, then the joint proba is P(i,j,k) propto P1(i,j)P2(i,k)P3(j,k).
a probability array of dim n
1 2 | rebastaba3k("RESET"); # needed only for R checking, to be forgotten
categ3betap();
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.