generate.catecls {mccca}R Documentation

Generate (NxJ) clustered categorical data matrix.

Description

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

Usage

generate.catecls(
  N = N,
  J = J,
  q.vec = q.vec,
  Ktrue = Ktrue,
  prop.J.list = prop.J.list,
  clstr.vec = clstr.vec
)

Arguments

N

The number of observations.

J

The number of active variables.

q.vec

A vector of length J giving the number of categories for each active variable.

Ktrue

An integer indicating the number of content-based clusters used for CCRS estimation.

prop.J.list

a list of length J, where each list is a (Ktrue x qj) matrix giving the proportion for each qj category in each of the Ktrue cluster.

clstr.vec

A vector of length N giving true clusters for each observations.

Value

an (NxJ) clustered categorical data matrix.


[Package mccca version 1.1.0.1 Index]