rand.member: Random partition of objects into classes

View source: R/InternalFunctions_PUGMM.R

rand.memberR 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)

PUGMM documentation built on June 24, 2025, 1:08 a.m.

Related to rand.member in PUGMM...