Hello all
I have been making mixed-effects models for a project that I am working on, and as a sensitivity analysis I have furthermore been using bootstrapping on the mixed-effects models.
A rather weird problem, however, seems to be that the results from bootstrapped mixed-effects models shown in the output do not match with the results stored in r(table). Instead, the results stored in r(table) match those from the non-bootstrapped mixed-effects models.
As an example, I have included code for making a simple mixed-effects model on the pig dataset (similar to example 1 on page 487 on https://www.stata.com/manuals/me.pdf) and a bootstrapped version of the same mixed-effects model with 20 repetitions.
The output and the results stored in r(table) for each of the two models are shown on the two pictures below.


As the second picture shows, the bootstrapped version of the mixed-effects model gives slightly wider confidence intervals (due to the slightly higher standard error), but the results stored in r(table) are identical to those from the simple mixed-effects model.
It has turned out that this problem only seems to occur in Stata/MP 17.0 for Windows, which I am using through a server. The problem does not occur on my PC, where I am using Stata/SE 16.1. Using version # does not change whether the problem occurs or not on neither the server nor on my PC. Furthermore, from what I can see, the problem does not occur with other types of bootstrapped models. Finally, the problem does not seem to affect bootstrap postestimation commands.
Does anyone have any idea why it is happening? I do not know a lot about servers, but I somehow doubt that it is specific to the server mentioned above. Thanks in advance.
Yours sincerely
Martin Kamp Dalgaard
I have been making mixed-effects models for a project that I am working on, and as a sensitivity analysis I have furthermore been using bootstrapping on the mixed-effects models.
A rather weird problem, however, seems to be that the results from bootstrapped mixed-effects models shown in the output do not match with the results stored in r(table). Instead, the results stored in r(table) match those from the non-bootstrapped mixed-effects models.
As an example, I have included code for making a simple mixed-effects model on the pig dataset (similar to example 1 on page 487 on https://www.stata.com/manuals/me.pdf) and a bootstrapped version of the same mixed-effects model with 20 repetitions.
Code:
webuse pig, clear mixed weight week || id: mat list r(table) bootstrap, reps(20) strata(week) seed(314): mixed weight week || id: mat list r(table)
As the second picture shows, the bootstrapped version of the mixed-effects model gives slightly wider confidence intervals (due to the slightly higher standard error), but the results stored in r(table) are identical to those from the simple mixed-effects model.
It has turned out that this problem only seems to occur in Stata/MP 17.0 for Windows, which I am using through a server. The problem does not occur on my PC, where I am using Stata/SE 16.1. Using version # does not change whether the problem occurs or not on neither the server nor on my PC. Furthermore, from what I can see, the problem does not occur with other types of bootstrapped models. Finally, the problem does not seem to affect bootstrap postestimation commands.
Does anyone have any idea why it is happening? I do not know a lot about servers, but I somehow doubt that it is specific to the server mentioned above. Thanks in advance.
Yours sincerely
Martin Kamp Dalgaard
Comment