genormixt: Sample form mixture of normals with warying concentrations.

Description Usage Arguments Value See Also Examples

Description

genormixt generates a sample from the mixture of normal distributions with mixing probabilities of components given by the matrix p.

Usage

1

Arguments

p

matrix (or data frame) of mixing probabilities with rows corresponding to subjects and columns coresponding to the mixture components.

mean

vector of components' means.

sd

vector of components' standard deviations.

Value

Vector with the sample. The sample size equals the rows number of p.

See Also

Maiboroda R., Sugakova O. "Statistics of mixtures with varying concentrations with application to DNA microarray data analysis". Nonparametric statistics (2012) v.24:1, p. 201 - 215

Examples

1
2
  x <- genormixt(genunifp(10,2),c(0,1),c(0.5,0.5))
  plot(x)

RostyslavMaiboroda/mixvconc documentation built on June 12, 2019, 12:34 a.m.