mixregPvaryGen function

Varying Proportion Mixture Data Generator

Varying Proportion Mixture Data Generator

`mixregPvaryGen' is used to generate a mixture of normal distributions with varying proportions: [REMOVE_ME]Yx,Z=zc=1Cπc(z)N(xβc,σc2).[REMOVEME2] Y|_{\boldsymbol{x},Z=z} \sim \sum_{c=1}^C\pi_c(z)N(\boldsymbol{x}^{\top}\boldsymbol{\beta}_c,\sigma_c^2). [REMOVE_ME_2]

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:

Yx,Z=zc=1Cπc(z)N(xβc,σc2). 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.

Examples

mixregPvaryGen(n = 100, C = 2)

See Also

mixregPvary

  • Maintainer: Suyeon Kang
  • License: GPL (>= 2)
  • Last published: 2023-09-20

Useful links