mixture_sim {ICSClust} | R Documentation |
Simulation of a mixture of Gaussian distributions
Description
Simulation of a data frame according to a mixture of
Gaussian distributions with
, different location parameters
, and the identity matrix as the covariance matrix.
Usage
mixture_sim(pct_clusters = c(0.5, 0.5), n = 500, p = 10, delta = 10)
Arguments
pct_clusters |
a vector of marginal probabilities for each group, i.e mixture weights. Default is two balanced clusters. |
n |
integer. The number of observations. |
p |
integer. The number of variables. |
delta |
integer. The location shift. |
Details
Let be a
-variate real random vector distributed according to
a mixture of
Gaussian distributions with
,
different location parameters
, and the same positive
definite covariance matrix
:
where are mixture weights with
,
,
and
with
.
Value
A dataframe of n observations and p+1 variables with the first variable indicating the cluster assignment using a character string.
Author(s)
Aurore Archimbaud
References
Alfons, A., Archimbaud, A., Nordhausen, K., & Ruiz-Gazen, A. (2022). Tandem clustering with invariant coordinate selection. arXiv preprint arXiv:2212.06108..
Examples
X <- mixture_sim()
summary(X)