rMMM {MGMM} | R Documentation |
This function samples data from the multiple mixed mixture model
rMMM(n = 100, delta = 4, param = replicate(2, list(pi = c(0.5, 0.5), Gauss = list(mu = matrix(c(1, 1, -1, -1), 2, 2) * delta, sd = matrix(1, 2, 2)), Multi = list(matrix(c(1/3, 2/3, 2/3, 1/3), 2), matrix(c(1/3, 2/3, 2/3, 1/3), 2))), simplify = F))
n |
numeric. Number of observations. |
delta |
numeric. To select the components overlaps. |
param |
list. Model parameters. |
List
# Data loading