Function to generate random responses given parameter values and a design
matrix, assuming a MNL model.
Usage
RespondMNL(par, des, n.alts, bin = TRUE)
Arguments
par
Numeric vector containing parameter values.
des
A design matrix in which each row is a profile. If alternative
specific constants are present, those should be included as the first
column(s) of the design. Can be generated with Modfed or CEA.
n.alts
Numeric value indicating the number of alternatives per choice
set.
bin
A logical value indicating whether the returned value should be a
binary vector or a discrete value which denotes the chosen alternative.
Value
Numeric vector indicating the chosen alternatives.