Learn R Programming

dcmr (version 1.0)

DrawAlphas: Draw values from multinomial distribution

Description

Draws values from a mutinomial distribution and matches them with a row in the pmatrix (attribute profile matrix) to obtain the alpha values

Usage

DrawAlphas(pmatrix, y, nus0)

Arguments

pmatrix
a matrix indicating all possible attribute profiles
y
number of random vectors to draw
nus0
a numeric vector of length nclasses for nu parameter estimates

Value

a numeric vector of alpha values