## Generate simulated dataset.
Theta <- rbind(pdf1 = rep("normal", 2),
theta1.1 = c(10, 20),
theta2.1 = c(3.0, 2.0),
pdf1 = rep("normal", 2),
theta1.1 = c(3, 2),
theta2.1 = c(20, 10))
simulated <- RNGMIX(Dataset = "simulated",
rseed = -1,
n = c(15, 15),
Theta = Theta)
## Preprocess simulated dataset.
y1y2f <- demix(x = simulated$Dataset[[1]],
Preprocessing = "histogram",
Variables = c("continuous", "continuous"),
k = 6)
y1y2f
Run the code above in your browser using DataLab