simulate_univariate_GMM | R Documentation |
Generation of a mixture drawn from an univariate GMM, with possibility to add outliers
simulate_univariate_GMM(
theta = list(p = c(0.4, 0.6), mu = c(175, 165), sigma = c(10, 12)),
n = 100,
prop_outliers = 0,
interval = 2
)
simulate_multivariate_GMM(theta, n = 500)
theta |
a list with 3 entries:
|
n |
the number of observations to be drawn |
prop_outliers, interval |
first argument is the proportion of outliers, drawn from an uniform distribution whose intervals are defined by the second argument twice the distance between the 0.05 and 0.95 quantile of the distribution |
We do not implement the possibility of adding outliers in the multivariate context
Depending on the univariate or multivariate context:
a list with the number of components k, the true parameters p, mu, sigma, the observed variables x, the hidden observations s and an indicator of the outliers s_outliers
a list with the number of components k, the true parameters p, mu, sigma,
the observations X
living in space \mathbb{R}^k
, the hidden indicator variables s
(vector of size n
)
Bastien CHASSAGNOL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.