rMixt {SenTinMixt}R Documentation

Random number generation for bidimensional parsimonious mixtures of MSEN or MTIN distributions

Description

Random number generation for bidimensional parsimonious mixtures of MSEN or MTIN distributions

Usage

rMixt(n, k, Pi, mu, cov.model, lambda, delta, gamma, theta, density)

Arguments

n

An integer specifying the number of data points to be simulated.

k

An integer indicating the number of groups in the data.

Pi

A vector of length k representing the probability of belonging to the k groups for each data point.

mu

A matrix of means with 2 rows and k columns.

cov.model

A character indicating the parsimonious structure of the scale matrices. Possible values are: "EII", "VII", "EEI", "VEI", "EVI", "VVI", "EEE", "VEE", "EVE", "EEV", "VVE", "VEV", "EVV" or "VVV".

lambda

A numeric vector of length k, related to the scale matrices (see Punzo et al., 2016), which determines the volumes of the mixture components. Each element must be greater than 0. Required for all the parsimonious structures.

delta

A numeric vector of length k, related to the scale matrices (see Punzo et al., 2016), which determines the shapes of the mixture components. Each element must be between 0 and 1. Required for all the parsimonious structures, with the exclusion of "EII" and "VII".

gamma

A numeric vector of length k, related to the scale matrices (see Punzo et al., 2016), which determines the orientation of the mixture components. Each element represents an angle expressed in radian unit. Required for the "EEE", "VEE", "EVE", "EEV", "VVE", "VEV", "EVV" or "VVV" parsimonious structures.

theta

A vector of length k representing the tailedness parameters.

density

A character indicating the density of the mixture components. Possible values are: "MSEN" or "MTIN".

Value

A list with the following elements:

X

A data matrix with n rows and 2 columns.

Sigma

An array of dimension 2 x 2 x k for the generated scale matrices.

Size

The size of each generated group.

References

Punzo A., Browne R. and McNicholas P.D. (2016). Hypothesis Testing for Mixture Model Selection. Journal of Statistical Computation and Simulation, 86(14), 2797-2818.

Examples

n <- 50
k <- 2
Pi <- c(0.5, 0.5)
mu <- matrix(c(0, 0, 4, 5), 2, 2)
cov.model <- "EEE"
lambda <- c(0.5, 0.5)
delta <- c(0.7, 0.7)
gamma <- c(2.62, 2.62)
theta <- c(0.1, 0.1)
density <- "MSEN"
data <- rMixt(n, k, Pi, mu, cov.model, lambda, delta, gamma, theta, density)

[Package SenTinMixt version 1.0.0 Index]