gengamixt: Sample from mixture of gamma distributions with varying...

Description Usage Arguments Value Examples

Description

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

Usage

1
gengamixt(p, shape, rate)

Arguments

p

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

shape

vector of shape parameters for gamma distributions of components.

rate

vector of rate parameters for gamma distributions of components.

Value

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

Examples

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

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