# \donttest{
weight <- rep( 0.5, 2 )
mu1 <- rep(-5 , 2 )
mu2 <- rep( 5 , 2 )
sigma1 <- matrix( c( 0.4, -0.20, -0.20, 0.4 ), nrow = 2, ncol = 2 )
sigma2 <- matrix( c( 0.4, 0.10, 0.10, 0.4 ), nrow = 2, ncol = 2 )
lambda1 <- matrix( c( -4, -2, 2, 5 ), nrow = 2, ncol = 2 )
lambda2 <- matrix( c( 4, 2, -2, -5 ), nrow = 2, ncol = 2 )
theta1 <- c( 10, 10 )
theta2 <- c( 20, 20 )
mu <- list( mu1, mu2 )
sigma <- list( sigma1 , sigma2 )
lambda <- list( lambda1, lambda2)
theta <- list( theta1 , theta2 )
Y <- rmix( n = 100, G = 2, weight, model = "canonical", mu, sigma, lambda,
family = "igamma", theta )
# }
Run the code above in your browser using DataLab