Hi there,
I am running a mixed logit model using the user written command mixlogit on Stata 16/MP8 with only one random coefficients and around 100 additional (constant) parameters to estimate. I have a very large number of observations (NXJ is more than 200 millions). Convergence is not an issue. The main problem is the time it takes to compute each iteration of the Sim Lik. I have tried with a few random sub-samples and have some questions on how to improve on speed for the overall sample:
1. I noticed that speed is quite sensitive to the number of halton draws -- nrep(#) option. How small is too small in order to increase speed at the cost of inducing noise and bias in the estimated coefficients?
2. Does the number of halton draws affect only the estimates of the random coefficients or also the other estimates of the model? I did not find any monte-carlo result on this, any suggestions?
3. Any other trick to improve speed in this case? What about the number of initial sequence elements to drop when creating Halton sequence? Can I reduce this to a very small number through the burn(#) option since I have only random coefficient?
Thanks a lot in advance for your attention and time. Best,
Matteo
Related Posts with Speeding up Mixlogit with large datasets
Stata not storing my matrix in MataHi all, I am running the code of DLW (2012) with using Stata 15. The command is meant to generate a…
Loop?I want to replicate this code up to stateid==32; from 1 to 32. How can I do this without typing it o…
Help: Can't format xtline plotDear community, I'm having three simple issues with with an 'xtline' plot. My plot looks as follow…
Include labels after margins pwcompare matrixFirst time poster. Apologies for errors. I'm wondering if there's a way to grab the labels along wit…
Deflating Brent Crude Oil Prices ($US) with US CPII currently have Brent Crude Oil prices in US dollars. However, I'd like to deflate it with US CPI s…
Subscribe to:
Post Comments (Atom)
0 Response to Speeding up Mixlogit with large datasets
Post a Comment