| Literature DB >> 33852635 |
Ricardo Ramírez-Aldana1, Lizbeth Naranjo2.
Abstract
Random intercept models are linear mixed models (LMM) including error and intercept random effects. Sometimes heteroscedasticity is included and the response variable is transformed into a logarithmic scale, while inference is required in the original scale; thus, the response variable has a log-normal distribution. Hence, correction terms should be included to predict the response in the original scale. These terms multiply the exponentiated predicted response variable, which subestimates the real values. We derive the correction terms, simulations and real data about the income of elderly are presented to show the importance of using them to obtain more accurate predictions. Generalizations for any LMM are also presented.Entities:
Year: 2021 PMID: 33852635 PMCID: PMC8046211 DOI: 10.1371/journal.pone.0249910
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1Simulated data.
Fig 2Simulated response vs. estimated response.
Summary of the MSE for different values of m, n, σ2, and for data simulated from a RIM in a logarithmic scale.
|
| |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 50 | 10 | 0.2 | 0.2 | 4.4 (2.4) | 8.2 (3.3) | 4.0 (2.2) | 4.0 (2.2) | 4.2 (2.3) | 4.6 (2.4) |
| 50 | 10 | 0.2 | 0.4 | 6.4 (4.2) | 16.1 (6.6) | 5.8 (3.6) | 5.8 (3.6) | 6.1 (4.0) | 6.6 (4.2) |
| 50 | 10 | 0.4 | 0.2 | 26.2 (81.7) | 29.5 (80.0) | 24.0 (79.0) | 23.9 (78.8) | 25.3 (81.1) | 25.0 (79.2) |
| 50 | 10 | 0.4 | 0.4 | 171.4 (1233.8) | 181.8 (1221.8) | 166.2 (1221.5) | 165.9 (1220.1) | 169.3 (1228.7) | 160.7 (1163.1) |
| 50 | 20 | 0.2 | 0.2 | 5.4 (5.8) | 9.3 (6.1) | 5.0 (5.4) | 5.0 (5.4) | 5.2 (5.7) | 5.3 (5.6) |
| 50 | 20 | 0.2 | 0.4 | 8.9 (21.2) | 21.2 (36.1) | 8.1 (17.9) | 8.1 (17.9) | 8.6 (20.3) | 8.8 (22.1) |
| 50 | 20 | 0.4 | 0.2 | 19.7 (18.4) | 23.3 (18.0) | 17.5 (16.2) | 17.5 (16.1) | 18.9 (17.9) | 18.1 (16.9) |
| 50 | 20 | 0.4 | 0.4 | 34.1 (61.3) | 45.0 (61.9) | 31.1 (57.4) | 31.1 (57.2) | 33.0 (60.6) | 31.5 (57.2) |
| 100 | 10 | 0.2 | 0.2 | 2.9 (2.3) | 6.7 (2.7) | 2.7 (2.1) | 2.7 (2.1) | 2.8 (2.2) | 3.0 (2.3) |
| 100 | 10 | 0.2 | 0.4 | 4.0 (5.5) | 14.0 (7.3) | 3.7 (4.8) | 3.7 (4.7) | 3.9 (5.4) | 4.1 (5.4) |
| 100 | 10 | 0.4 | 0.2 | 19.0 (67.6) | 22.6 (68.1) | 17.7 (64.3) | 17.6 (64.0) | 18.6 (67.1) | 18.2 (64.5) |
| 100 | 10 | 0.4 | 0.4 | 11.9 (10.3) | 22.0 (11.9) | 10.6 (9.1) | 10.6 (9.0) | 11.4 (10.0) | 11.1 (9.4) |
| 100 | 20 | 0.2 | 0.2 | 2.9 (1.6) | 6.5 (2.0) | 2.7 (1.4) | 2.7 (1.4) | 2.9 (1.5) | 2.9 (1.5) |
| 100 | 20 | 0.2 | 0.4 | 3.7 (2.6) | 13.4 (4.6) | 3.4 (2.3) | 3.4 (2.3) | 3.6 (2.6) | 3.6 (2.5) |
| 100 | 20 | 0.4 | 0.2 | 10.5 (13.2) | 14.0 (13.0) | 9.6 (12.8) | 9.6 (12.8) | 10.3 (13.1) | 9.8 (12.7) |
| 100 | 20 | 0.4 | 0.4 | 27.2 (92.0) | 37.0 (91.6) | 25.3 (90.1) | 25.3 (90.0) | 26.7 (91.7) | 25.4 (87.3) |
| {11,…,50} | 0.2 | 0.2 | 3.1 (1.6) | 6.7 (2.3) | 2.9 (1.4) | 2.9 (1.4) | 3.0 (1.6) | 3.1 (1.6) | |
| {11,…,50} | 0.2 | 0.4 | 4.9 (3.1) | 15.2 (7.3) | 4.6 (2.8) | 4.6 (2.8) | 4.8 (3.1) | 4.9 (3.0) | |
| {11,…,50} | 0.4 | 0.2 | 14.7 (20.2) | 18.2 (19.3) | 13.5 (18.6) | 13.4 (18.5) | 14.3 (20.0) | 13.9 (19.1) | |
| {11,…,50} | 0.4 | 0.4 | 15.8 (15.3) | 25.7 (15.6) | 14.3 (14.2) | 14.3 (14.1) | 15.2 (15.1) | 14.7 (14.4) | |
| {11,…,90} | 0.2 | 0.2 | 1.4 (0.7) | 5.0 (1.4) | 1.4 (0.6) | 1.4 (0.6) | 1.4 (0.7) | 1.4 (0.7) | |
| {11,…,90} | 0.2 | 0.4 | 2.2 (1.2) | 12.7 (6.2) | 2.1 (1.0) | 2.1 (1.0) | 2.2 (1.2) | 2.2 (1.2) | |
| {11,…,90} | 0.4 | 0.2 | 7.9 (37.5) | 11.6 (37.5) | 7.6 (36.8) | 7.6 (36.8) | 7.8 (37.4) | 7.6 (36.2) | |
| {11,…,90} | 0.4 | 0.4 | 8.9 (15.1) | 18.9 (16.1) | 8.2 (14.3) | 8.2 (14.3) | 8.7 (15.0) | 8.4 (14.2) | |
The means and standard deviations (sd) of the MSE are computed by using the estimates, , given by the naive estimator, correction terms of (5), (9), (11), and (13) and a GLMM with gamma distribution and logarithmic link, respectively.
Summary of the MSE for different values of m, n, α, and for data simulated from a GLMM with gamma distribution and logarithmic link.
|
| |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 50 | 10 | 1 | 0.2 | 13.9 (11.0) | 558.2 (869.0) | 74.6 (74.4) | 90.1 (93.2) | 12.9 (10.7) | 12.0 (10.0) |
| 50 | 10 | 1 | 0.4 | 23.9 (29.2) | 577.4 (895.6) | 51.4 (57.3) | 64.0 (75.6) | 23.7 (28.7) | 19.8 (23.8) |
| 50 | 10 | 1.5 | 0.2 | 9.6 (6.0) | 29.8 (11.3) | 10.7 (5.1) | 11.3 (5.3) | 8.9 (5.7) | 8.5 (5.2) |
| 50 | 10 | 1.5 | 0.4 | 14.0 (9.6) | 40.2 (19.1) | 13.1 (7.9) | 13.7 (8.2) | 13.0 (8.8) | 12.0 (7.9) |
| 50 | 10 | 5 | 0.2 | 2.8 (1.3) | 6.2 (1.8) | 2.6 (1.1) | 2.6 (1.1) | 2.7 (1.2) | 3.0 (1.4) |
| 50 | 10 | 5 | 0.4 | 4.5 (3.4) | 14.3 (7.9) | 4.1 (2.9) | 4.1 (2.9) | 4.3 (3.2) | 4.6 (3.4) |
| 50 | 20 | 1 | 0.2 | 15.2 (8.5) | 311.7 (251.9) | 21.9 (12.7) | 24.0 (14.6) | 16.2 (8.5) | 12.9 (6.7) |
| 50 | 20 | 1 | 0.4 | 26.1 (45.9) | 366.9 (187.1) | 29.5 (35.3) | 31.8 (36.1) | 29.5 (45.5) | 21.8 (36.5) |
| 50 | 20 | 1.5 | 0.2 | 9.0 (2.4) | 24.0 (6.6) | 8.6 (2.0) | 8.7 (2.0) | 8.6 (2.3) | 7.9 (2.0) |
| 50 | 20 | 1.5 | 0.4 | 13.9 (7.3) | 38.4 (14.3) | 12.5 (6.0) | 12.6 (6.0) | 13.7 (6.6) | 12.0 (6.0) |
| 50 | 20 | 5 | 0.2 | 2.7 (1.0) | 6.1 (1.6) | 2.5 (0.9) | 2.5 (0.9) | 2.6 (1.0) | 2.7 (1.0) |
| 50 | 20 | 5 | 0.4 | 4.3 (2.6) | 14.7 (8.1) | 3.9 (2.2) | 3.9 (2.1) | 4.1 (2.4) | 4.2 (2.6) |
| 100 | 10 | 1 | 0.2 | 8.5 (7.8) | 89.5 (54.6) | 16.1 (8.8) | 18.1 (10.1) | 8.1 (7.8) | 7.5 (7.1) |
| 100 | 10 | 1 | 0.4 | 12.2 (7.0) | 110.9 (52.5) | 15.4 (9.1) | 17.3 (11.5) | 11.9 (6.8) | 10.5 (6.0) |
| 100 | 10 | 1.5 | 0.2 | 5.6 (2.7) | 14.9 (4.1) | 5.7 (2.2) | 5.9 (2.2) | 5.3 (2.6) | 5.1 (2.4) |
| 100 | 10 | 1.5 | 0.4 | 7.8 (3.9) | 24.4 (6.9) | 7.3 (3.3) | 7.5 (3.3) | 7.5 (3.7) | 7.0 (3.4) |
| 100 | 10 | 5 | 0.2 | 1.6 (0.5) | 5.2 (1.0) | 1.5 (0.5) | 1.5 (0.4) | 1.6 (0.5) | 1.7 (0.6) |
| 100 | 10 | 5 | 0.4 | 2.4 (1.3) | 12.6 (4.7) | 2.2 (1.1) | 2.2 (1.0) | 2.3 (1.2) | 2.5 (1.4) |
| 100 | 20 | 1 | 0.2 | 8.6 (3.2) | 69.7 (22.0) | 10.0 (4.0) | 10.5 (4.4) | 8.5 (3.3) | 7.5 (2.7) |
| 100 | 20 | 1 | 0.4 | 15.3 (13.5) | 86.0 (28.6) | 14.1 (11.5) | 14.3 (11.5) | 15.8 (13.9) | 13.1 (11.4) |
| 100 | 20 | 1.5 | 0.2 | 5.7 (1.8) | 13.5 (2.2) | 5.2 (1.4) | 5.3 (1.4) | 5.5 (1.7) | 5.0 (1.5) |
| 100 | 20 | 1.5 | 0.4 | 10.3 (10.8) | 25.1 (9.2) | 9.0 (8.9) | 9.1 (8.9) | 10.1 (10.6) | 9.0 (9.1) |
| 100 | 20 | 5 | 0.2 | 1.6 (0.6) | 5.0 (1.0) | 1.5 (0.5) | 1.5 (0.5) | 1.6 (0.6) | 1.6 (0.6) |
| 100 | 20 | 5 | 0.4 | 2.5 (1.3) | 11.8 (4.5) | 2.3 (1.1) | 2.3 (1.1) | 2.4 (1.2) | 2.4 (1.2) |
| {11,…,50} | 1 | 0.2 | 12.6 (10.7) | 75.8 (33.8) | 18.1 (10.9) | 19.8 (11.8) | 11.9 (10.7) | 11.1 (9.7) | |
| {11,…,50} | 1 | 0.4 | 17.9 (7.5) | 134.6 (288.9) | 19.4 (9.6) | 21.1 (12.0) | 35.0 (177.4) | 15.2 (6.0) | |
| {11,…,50} | 1.5 | 0.2 | 7.7 (2.0) | 15.0 (3.8) | 7.4 (1.6) | 7.6 (1.7) | 7.2 (1.9) | 6.9 (1.7) | |
| {11,…,50} | 1.5 | 0.4 | 11.5 (6.6) | 26.6 (14.1) | 10.5 (5.6) | 10.6 (5.6) | 10.8 (6.0) | 10.2 (5.8) | |
| {11,…,50} | 5 | 0.2 | 2.2 (0.6) | 5.7 (2.4) | 2.1 (0.5) | 2.1 (0.5) | 2.1 (0.6) | 2.2 (0.6) | |
| {11,…,50} | 5 | 0.4 | 3.2 (1.1) | 12.0 (5.6) | 3.0 (1.1) | 3.0 (1.1) | 3.1 (1.1) | 3.2 (1.1) | |
| {11,…,90} | 1 | 0.2 | 5.9 (1.4) | 18.5 (4.4) | 6.1 (1.4) | 6.3 (1.5) | 5.7 (1.4) | 5.4 (1.2) | |
| {11,…,90} | 1 | 0.4 | 8.0 (2.1) | 28.3 (8.8) | 7.8 (2.1) | 7.9 (2.2) | 7.8 (2.0) | 7.3 (1.9) | |
| {11,…,90} | 1.5 | 0.2 | 3.7 (0.7) | 8.0 (1.6) | 3.5 (0.6) | 3.6 (0.6) | 3.6 (0.7) | 3.4 (0.7) | |
| {11,…,90} | 1.5 | 0.4 | 6.0 (2.1) | 17.1 (6.3) | 5.5 (1.7) | 5.5 (1.7) | 5.7 (2.0) | 5.5 (1.8) | |
| {11,…,90} | 5 | 0.2 | 1.1 (0.2) | 4.5 (1.3) | 1.0 (0.2) | 1.0 (0.2) | 1.1 (0.2) | 1.1 (0.2) | |
| {11,…,90} | 5 | 0.4 | 1.6 (0.5) | 11.3 (5.3) | 1.5 (0.4) | 1.5 (0.4) | 1.6 (0.4) | 1.6 (0.5) | |
The means and standard deviations (sd) of the MSE are computed by using the estimates, , given by the naive estimator, correction terms of (5), (9), (11), and (13), and a GLMM with gamma distribution and logarithmic link, respectively.
Parameter estimations for the RIM associated with income in a logarithmic scale for elderly people data in 2016.
| Variable | Value | Std. Error | DF | ||
|---|---|---|---|---|---|
| Intercept | 9.128 | 0.043 | 18261 | 211.533 | <0.001 |
| Woman | -0.176 | 0.011 | 18261 | -15.476 | <0.001 |
| No indigeneous | 0.042 | 0.010 | 18261 | 4.002 | <0.001 |
| Not knowing how to write/read | -0.064 | 0.017 | 18261 | -3.881 | <0.001 |
| Level of education: Prescholar | -0.069 | 0.106 | 18261 | -0.654 | 0.513 |
| Level of education: Elementary | 0.047 | 0.016 | 18261 | 2.924 | 0.004 |
| Level of education: Junior high | 0.171 | 0.021 | 18261 | 8.002 | <0.001 |
| Level of education: High school | 0.347 | 0.031 | 18261 | 11.088 | <0.001 |
| Level of education: Teacher’s school | 0.760 | 0.047 | 18261 | 16.087 | <0.001 |
| Level of education: Technician | 0.222 | 0.028 | 18261 | 7.837 | <0.001 |
| Level of education: Bachelor’s degree | 0.443 | 0.028 | 18261 | 15.580 | <0.001 |
| Level of education: Master’s degree | 0.625 | 0.079 | 18261 | 7.949 | <0.001 |
| Level of education: Ph.D. | 0.685 | 0.181 | 18261 | 3.793 | <0.001 |
| With a partner | -0.057 | 0.010 | 18261 | -5.682 | <0.001 |
| No health service provider | -0.160 | 0.011 | 18261 | -14.329 | <0.001 |
| Work: Looking for a job | -0.465 | 0.052 | 18261 | -8.989 | <0.001 |
| Work: Retired | -0.120 | 0.013 | 18261 | -9.005 | <0.001 |
| Work: Domestic chores | -0.415 | 0.014 | 18261 | -30.620 | <0.001 |
| Work: Other situation | -0.452 | 0.023 | 18261 | -19.800 | <0.001 |
| Work: Can not work | -0.407 | 0.024 | 18261 | -17.014 | <0.001 |
| With disability | -0.075 | 0.010 | 18261 | -7.430 | <0.001 |
| No contribution social security | -0.201 | 0.012 | 18261 | -17.043 | <0.001 |
| Number of rooms | 0.023 | 0.004 | 18261 | 6.166 | <0.001 |
| No wc | -0.106 | 0.029 | 18261 | -3.578 | <0.001 |
| Total number of light bulbs | 0.014 | 0.001 | 18261 | 10.972 | <0.001 |
| Ownership: Borrowed | -0.130 | 0.026 | 18261 | -4.922 | <0.001 |
| Ownership: Owner but paying | -0.089 | 0.034 | 18261 | -2.611 | 0.009 |
| Ownership: Owner | -0.092 | 0.023 | 18261 | -4.023 | <0.001 |
| Ownership: Intestated | -0.136 | 0.039 | 18261 | -3.525 | <0.001 |
| Ownership: Another situation | -0.115 | 0.059 | 18261 | -1.961 | 0.050 |
| Number of residents | -0.014 | 0.002 | 18261 | -6.271 | <0.001 |
| Urban | -0.005 | 0.012 | 18261 | -0.402 | 0.688 |
| Stratum: Low-medium | 0.096 | 0.014 | 18261 | 6.810 | <0.001 |
| Stratum: High-medium | 0.074 | 0.020 | 18261 | 3.693 | <0.001 |
| Stratum: High | 0.144 | 0.029 | 18261 | 5.034 | <0.001 |
| Floor: Cement | 0.085 | 0.026 | 18261 | 3.222 | 0.001 |
| Floor: Wood, mosaic or other | 0.183 | 0.028 | 18261 | 6.497 | <0.001 |
Fig 3Residuals.
Left: Histogram of the residuals. Middle: qq-plot of the residuals. Right: qq-plot of the residuals of the random effects.
Fig 4Fitted values for the RIM associated with income in a logarithmic scale for elderly people data in 2016.
Squared red: naive estimates. Blue triangles: estimates by using the correction terms in (12).
Summary of the MSE for the mimic simulation example.
| Weights | |||||||
|---|---|---|---|---|---|---|---|
| (1) | 0.15 | 0.079 | 183.0 (5.9) | 797.6 (104.2) | 183.0 (5.9) | 183.0 (5.9) | 183.0 (5.9) |
| (1) | 0.15 | 0.32 | 201.7 (16.2) | 3383.0 (607.6) | 201.7 (16.2) | 201.7 (16.2) | 201.7 (16.2) |
| (1) | 0.15 | 1.28 | 753.6 (350.0) | 35308.6 (19790.8) | 753.8 (350.0) | 753.8 (350.0) | 753.7 (350.0) |
| (1) | 0.594 | 0.079 | 725.3 (22.4) | 1053.2 (84.1) | 724.6 (22.3) | 724.6 (22.3) | 724.7 (22.3) |
| (1) | 0.594 | 0.32 | 796.7 (67.6) | 3432.5 (696.9) | 796.0 (67.5) | 796.0 (67.5) | 796.0 (67.5) |
| (1) | 0.594 | 1.28 | 2994.2 (2264.1) | 34012.2 (27261.6) | 2991.4 (2262.3) | 2991.3 (2262.3) | 2991.9 (2262.5) |
| (1) | 1.2 | 0.079 | 1495.4 (49.6) | 1680.7 (68.5) | 1490.5 (49.1) | 1490.4 (49.1) | 1490.7 (49.1) |
| (1) | 1.2 | 0.32 | 1634.4 (107.4) | 3713.1 (592.2) | 1629.5 (106.4) | 1629.5 (106.4) | 1629.9 (106.5) |
| (1) | 1.2 | 1.28 | 6852.0 (5789.4) | 38593.9 (36263.5) | 6840.1 (5851.4) | 6840.2 (5852.4) | 6844.1 (5869.6) |
| (2) | 0.15 | 0.079 | 540.1 (12.1) | 928.9 (88.2) | 539.9 (12.1) | 539.9 (12.1) | 539.9 (12.1) |
| (2) | 0.15 | 0.32 | 592.8 (38.2) | 3306.8 (562.7) | 592.5 (38.2) | 592.5 (38.2) | 592.6 (38.2) |
| (2) | 0.15 | 1.28 | 2290.2 (1369.8) | 35322.8 (24328.5) | 2288.1 (1367.9) | 2288.1 (1367.9) | 2289.4 (1369.4) |
| (2) | 0.594 | 0.079 | 2264.4 (81.6) | 2387.4 (86.0) | 2245.5 (78.5) | 2245.5 (78.5) | 2251.4 (80.5) |
| (2) | 0.594 | 0.32 | 2506.9 (206.4) | 4311.0 (683.5) | 2484.7 (200.4) | 2484.7 (200.3) | 2491.3 (203.9) |
| (2) | 0.594 | 1.28 | 8994.3 (4847.5) | 34063.3 (21229.0) | 8909.1 (4786.8) | 8908.9 (4786.4) | 8934.1 (4792.5) |
| (2) | 1.2 | 0.079 | 5546.3 (647.1) | 5472.5 (622.3) | 5412.8 (629.8) | 5412.8 (629.7) | 5453.8 (648.7) |
| (2) | 1.2 | 0.32 | 6289.4 (1296.7) | 7195.0 (1295.5) | 6122.4 (1257.0) | 6122.4 (1256.9) | 6182.5 (1301.5) |
| (2) | 1.2 | 1.28 | 23639.7 (17407.2) | 47081.2 (37670.3) | 23141.8 (17392.3) | 23143.1 (17395.0) | 23264.0 (17244.1) |
(1) Size of each cluster. (2) Total number of light bulbs.