rmm {greed}R Documentation

Generate data using a Multinomial Mixture

Description

rmm returns a count matrix and the cluster labels generated randomly with a Mixture of Multinomial model.

Usage

rmm(N, pi, mu, lambda)

Arguments

N

A numeric value the size of the graph to generate

pi

A numeric vector of length K with clusters proportions. Must sum up to 1.

mu

A numeric matrix of dim k x D with the clusters patterns to generate, all elements in [0,1].

lambda

A numeric value which specify the expectation for the row sums.

Details

It takes the sample size, cluster proportions and emission matrix, and as input and sample a graph accordingly together with the clusters labels.

Value

A list with fields:


[Package greed version 0.6.1 Index]