categ3beta2: compute a bivariate categ distribution In rebastaba: Handling Bayesian networks

Description

(ba) from beta distributions operates an approximate equal spaced discretization for two variables

Usage

 ```1 2``` ```categ3beta2(co=c(1, 1), re=c(1, 1), n=c(3, 4), xnames=list(V.1=form3names(n[1]), V.2=form3names(n[2]))) ```

Arguments

 `co` ) parameters for the common Beta distribution. `re` ) parameters for the Beta distribution associated to the relationship between the two variables. `n` ) Number of classes to use for the first and second variable. `xnames` the dimnames of to apply onto the resulting probability matrix.

Details

The central idea is the product of two betas onto the domain of the two variables. The first along the first diagonal (common distribution), the second along the second diagonal (relationship distribution) restricted to the corresponding interval. See the code for more details.

Value

a probability matrix of dimension n

Examples

 `1` ``` categ3beta2 ```

rebastaba documentation built on May 31, 2017, 3:26 a.m.