mixregPvaryGen: 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)
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.