Internal function that generates nmat matrix to help with multinomial draws

SummarizeDat(z, dat, ncateg, nbehav, nobs)

Arguments

z

An integer vector.

dat

An integer vector.

ncateg

An integer.

nbehav

An integer.

nobs

An integer.