mxbeta: Matrix Variate Beta Distributions.

Description Usage Arguments Examples

Description

We have 2 types of Beta distributions, namely, Type 1 and Type 2. Like other functions, dmxbeta1 and dmxbeta2 are to evaluate densities, while rmxbeta1 and rmxbeta2 generate random samples accordingly to the model provided.

Usage

1
2
3
4
5
6
7
dmxbeta1(X, a, b)

dmxbeta2(X, a, b)

rmxbeta1(n, p, a, b, S)

rmxbeta2(n, p, a, b)

Arguments

X

a (p-by-p) matrix whose density be computed.

a

positive real number > (p-1)/2.

b

positive real number > (p-1)/2.

n

the number of samples to be generated.

p

the dimension for sample matrix.

S

a (p-by-p) covariance matrix required for Type 1 Beta sampling.

Examples

1
2
3
## Sample Generations
sbeta1 = rmxbeta1(10, p=4, a=6, b=2, S=diag(4))
sbeta2 = rmxbeta2(10, p=4, a=6, b=2)

matdist documentation built on Dec. 8, 2017, 1:05 a.m.

Related to mxbeta in matdist...