mixregPvaryGen {MixSemiRob} | R Documentation |
Varying Proportion Mixture Data Generator
Description
‘mixregPvaryGen’ is used to generate a mixture of normal distributions with varying proportions:
Y|_{\boldsymbol{x},Z=z} \sim \sum_{c=1}^C\pi_c(z)N(\boldsymbol{x}^{\top}\boldsymbol{\beta}_c,\sigma_c^2).
See mixregPvary
for details.
Usage
mixregPvaryGen(n, C = 2)
Arguments
n |
number of observations. |
C |
number of mixture components. Default is 2. |
Value
A list containing the following elements:
x |
vector of length n. |
y |
vector of length n. |
true_p |
n by C matrix of probabilities of an observations belonging to each component. |
See Also
Examples
mixregPvaryGen(n = 100, C = 2)
[Package MixSemiRob version 1.1.0 Index]