I'm running a 4-equation model (2 x Heckman selection model) with CMP and I want to add random intercepts (maybe later also random slopes). Without any random effects, the model runs fast (4 hours for a N = 700,000 dataset and ~ 10 predictors per equation). I'm running the model on a Linux server and it consumes at maximum 2GB of RAM.
When I start adding a random intercept (the data belongs to 17,000 individuals) to each of the four equations, after a few minutes, Stata consumes more than 500GB of RAM (which is the maximum I get allocate to the job) and it aborts the estimation.
I've tried adding random intercepts to only two out of the four equations, then the model consumes at maximum 22GB of RAM but has not finished yet after 3.5 days.
I'm wondering why adding the random intercepts has such an enormous effect on the computational effort of the model.
Any ideas what's going on?
Related Posts with Adding random intercepts in CMP slows down estimation a lot and makes required RAM exceed 500GB
Export matrix to Word with asdocx after the predict commandProf River Huang asked the following question Dear Attaullah, Is it possible to put the results …
Comparing population and sample age and sex distributionHi all, I am not so sure if my logic for the code is right or wrong. I have to check if the age and…
Negative scale value using fixed effects quantile regression xtqregI have individual-level panel wealth-at-age data with 4600 observations on 350 individuals. Because …
Can the attenuation bias of a demeaned dependent variable be solved by an control function approach?I recently demeaned my dependent variable by a group interaction. Mainly because simply adding them …
2SLS For BeginnersI am would love some help understanding how to run a 2SLS. I am replicating a table and first ran an…
Subscribe to:
Post Comments (Atom)
0 Response to Adding random intercepts in CMP slows down estimation a lot and makes required RAM exceed 500GB
Post a Comment