Page 1 of 1

Any example to simulate data for EMDC model?

Posted: 04 Dec 2023, 07:01
by TWayne
Hi authors,

Thank you very much for the package and the great forum. It is super helpful.

I am hoping to try the EMDC model that considers complementarity based on Palma and Hess (2022). I am wondering how we can simulate the budget allocation data? For example, I hope to simulate some budget allocation data first, and then I can use the package the estimate the model using the simulated data to recover parameters. I understand how I can do the estimation, but do not know how to do the data simulation.

Thank you.

Best,
TW

Re: Any example to simulate data for EMDC model?

Posted: 04 Dec 2023, 10:39
by stephanehess
Hi

you can use apollo_prediction to simulate some choices, but as this will be averaged across the draws for the error terms, it won't have any corner solutions.

If you want predictions at the draw level, you could include rawPrediction=TRUE in emdc_settings

Stephane & David