Hello,
I have finalized a two-level logit model with melogit using Stata 15. The model has fixed effects at both levels and interactions but has no random effects. When I run my margins command, it is just taking too long. I ran a simple margins command which worked but the one that I really want is taking too long (hours)
The above is just one of the commands I want to get the results for. I have tried several different ones. I thought that maybe the second margins command is asking too much so decided to fix some parameters in my third command but it has not helped so far. I understand that this being a multilevel model, margins will take more time but I am not sure how much time it should take.
I am now wondering if there is an error in my command. If not, is there some way to make this faster? I will really appreciate any understanding on this issue.
Thank you
I have finalized a two-level logit model with melogit using Stata 15. The model has fixed effects at both levels and interactions but has no random effects. When I run my margins command, it is just taking too long. I ran a simple margins command which worked but the one that I really want is taking too long (hours)
Code:
melogit im i.matgr##i.anc i.matgr##i.wlth i.matgr##i.rel c.pc_A_c c.pc_B_c c.pc_C_c [pweight=pwt1]||SID:, cov(unstruct) from (a) vce(cluster SID) margins matgr, vsquish post vce(unconditional) * worked margins , dydx(matgr##anc) at (wlth=(0 1 2 3 4)) vsquish post vce(unconditional) margins , dydx(matgr##anc) atmeans(c) at(wlth=(0 1 2 3 4) rel=2 rural=0) vsquish post vce(unconditional)
I am now wondering if there is an error in my command. If not, is there some way to make this faster? I will really appreciate any understanding on this issue.
Thank you
Comment