generate.cate.listR Documentation

Generate (NxJ) categorical data matrix.

Description

Generate an (NxJ) categorical data matrix given by prop.J.list and true cluster allocation.

Usage

generate.cate.list(N = N, prop.list = prop.list)

Arguments

N

The number of observations.

prop.list

a list length J, each of which is a vector of length qj giving the proportion for each categories.

Value

an (NxJ) categorical data matrix.