genunifp: Generates matrix of mixing probabilities.

Description Usage Arguments Value See Also Examples

Description

genunifp returns a matrix whose rows are independent random vectors uniformly distributed over the M-simplex.

Usage

1
genunifp(n, M)

Arguments

n

number of subjects (rows).

M

number of mixing components (columns).

Value

Matrix p of mixing probabilities with n rows and M columns. The names of components (columns) are A,B,C... The names of cases (rows) are 1,2,3,...

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
3
4
5
p <- genunifp(10,2)
p

p <- genunifp(1000,3)
plot(p[,3],p[,1],cex=0.2)

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