simnhlogit: Simulate from Non-homothetic Logit Model
Description
simnhlogit
simulates from the non-homothetic logit modelUsage
simnhlogit(theta, lnprices, Xexpend)
Arguments
lnprices
n x p array of prices
Xexpend
n x k array of values of expenditure variables
Value
- a list containing:
- yn x 1 vector of multinomial outcomes (1, ..., p)
- Xexpendexpenditure variables
- lnpricesprice array
- thetacoefficients
- probn x p array of choice probabilities
Warning
This routine is a utility routine that does not check the
input arguments for proper dimensions and type.Details
For detail on parameterization, see llnhlogit
.References
For further discussion, see Bayesian Statistics and Marketing
by Allenby, McCulloch, and Rossi.
http://gsbwww.uchicago.edu/fac/peter.rossi/research/bsm.html