rmultinom: Overrides stats::rmultinom, reformatting its output....

View source: R/override.R

rmultinomR Documentation

Overrides stats::rmultinom, reformatting its output. Specifically, the output of stats:rmultinom is transpased, so that the returned value is a matrix in which each row (rather than column) corresponds to one observation and each column (rather than row) corresponds to one of the categorical outcomes. Each cell represents the counts observed for each outcomes on that observation.

Description

Overrides stats::rmultinom, reformatting its output. Specifically, the output of stats:rmultinom is transpased, so that the returned value is a matrix in which each row (rather than column) corresponds to one observation and each column (rather than row) corresponds to one of the categorical outcomes. Each cell represents the counts observed for each outcomes on that observation.

Usage

rmultinom(n, size, prob)

hlplab/MVBeliefUpdatr documentation built on March 29, 2025, 10:42 p.m.