Description Usage Arguments Value
Generate data from a mixture of normals with additionally noisy variables
1 | samplemixNoise(N, weights, mean, cov, p, meanNoise, covNoise, struc = "Diag")
|
N |
The number of observations to be generated |
weights |
A vector of weights for each mixture component |
mean |
A list containing the means for each component |
cov |
A list containing covariance matrix or variance vectors. See paramater |
p |
The number of noisy variables |
meanNoise |
A vector of the means of each of the noisy variables |
covNoise |
A vector of standard deviations |
struc |
A character string indicating the structure of the covariance matrix. Diagonal is selected by default
and |
A list of three of length three. The first the mixture weights, the second a data matrix containing the observations, and the third a vector of the componenet allocations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.