Learn R Programming

GMCM (version 1.1.1)

rtheta: Get random parameters for the Gaussian mixture (copula) model

Description

The function generates a random set parameters for the Gaussian mixture model (GMM) and Gaussian mixture copula model (GMCM).

Usage

rtheta(m = 3, d = 2)

Arguments

m
The number of components in the mixture.
d
The dimension of the mixture distribution.

Value

  • A named list of parameters with the 4 elements:
  • mAn integer giving the number of components in the mixture. Default is 3.
  • dAn integer giving the dimension of the mixture distribution. Default is 2.
  • pieA numeric vector of length m of mixture proportions between 0 and 1 which sums to one.
  • muA list of length m of numeric vectors of length d for each component.
  • sigmaA list of length m of variance-covariance matrices (of size d times d) for each component.

See Also

is.theta

Examples

Run this code
rtheta()
rtheta(d = 5, m = 2)

test <- rtheta()
is.theta(test)

Run the code above in your browser using DataLab