generate.multinomial: A function to create an n x j matrix of outcomes where the...

Description Usage Arguments Value

View source: R/generate.multinomial.R

Description

This function takes a numeric vector corresponding to observed ordinal values of a random variable, and a second vector specifying the ordered levels of y. This is not intended to be used independently.

Usage

1
generate.multinomial(y, y.levels)

Arguments

y

A vector of containing the values of an ordinal outcome variable.

y.levels

A vector of the unique, ordinal levels of y.

Value

A matrix where the rows correspond to subjects and the columns correspond to levels of the outcome.


group-wine/sommelieR documentation built on May 21, 2019, 1:43 p.m.