mixregPvaryGen | R Documentation |
‘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.
mixregPvaryGen(n, C = 2)
n |
number of observations. |
C |
number of mixture components. Default is 2. |
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. |
mixregPvary
mixregPvaryGen(n = 100, C = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.