rand.member {PUGMM}R Documentation

Random partition of objects into classes

Description

Performs a random partition of objects into classes.

Usage

rand.member(n.obs, G)

Arguments

n.obs

Number of objects

G

Number of classes

Details

No empty classes can occur.

Value

A binary and row-stochastic matrix with n.obs rows and G columns.

Examples

rand.member(10, 3)

[Package PUGMM version 0.1.0 Index]