`mixregPvaryGen' is used to generate a mixture of normal distributions with varying proportions: [REMOVE_ME]Y∣x,Z=z∼∑c=1Cπc(z)N(x⊤βc,σc2).[REMOVEME2]
See mixregPvary for details.
mixregPvaryGen(n, C =2)
Arguments
n: number of observations.
C: number of mixture components. Default is 2.
Returns
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.
Description
`mixregPvaryGen' is used to generate a mixture of normal distributions with varying proportions: