Learn R Programming

matdist (version 0.1.1)

mxbeta: Matrix Variate Beta Distributions.

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

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

Run this code
# NOT RUN {
## Sample Generations
sbeta1 = rmxbeta1(10, p=4, a=6, b=2, S=diag(4))
sbeta2 = rmxbeta2(10, p=4, a=6, b=2)

# }

Run the code above in your browser using DataLab