rcat: Random categorical generator

Description Usage Arguments Value

View source: R/rcat.R

Description

Random categorical generator

Usage

1
rcat(probs)

Arguments

probs

n by K matrix of probabilities n subjects to be assigned to K categories

Value

return vector of length nrow(probs) of categorical indicators


lvhoskovec/mmpack documentation built on Aug. 21, 2021, 4:05 p.m.