Dear all,
Hope you can help me with this one. I have panel data across 30 individuals. This individuals were assessed across time 6 times for two different variables (e.g. cholesterol and glicemia). I would like to know if glicemia is varying across time and at the same time across cholesterol, i.e. if glicemia is increasing or decreasing differently if cholesterol is increasing or decreasing across time. AS an example of a possible conclusion for the analysis I aim to perform would be " People who increase cholesterol level across time tend to increase glicemia". My gut tells me that xtmixed fits the purpose but I am not sure what syntax is fitted here. Already checked the xtmixed stata manual and there is not real a model that really helps solving me this issue. Can you please help me. Below is the data.
Thank you in advance,
Gonçalo Cotovio
Hope you can help me with this one. I have panel data across 30 individuals. This individuals were assessed across time 6 times for two different variables (e.g. cholesterol and glicemia). I would like to know if glicemia is varying across time and at the same time across cholesterol, i.e. if glicemia is increasing or decreasing differently if cholesterol is increasing or decreasing across time. AS an example of a possible conclusion for the analysis I aim to perform would be " People who increase cholesterol level across time tend to increase glicemia". My gut tells me that xtmixed fits the purpose but I am not sure what syntax is fitted here. Already checked the xtmixed stata manual and there is not real a model that really helps solving me this issue. Can you please help me. Below is the data.
Thank you in advance,
Gonçalo Cotovio
Code:
id time colesterol glicemia 1 1 15 1.07 1 2 16 1.17 1 3 15 1.23 1 4 10 1.18 1 5 20 1.22 1 6 1.24 2 1 40.5 .96 2 2 44 .96 2 3 41 .94 2 4 38 1 2 5 39 1.02 2 6 26 1 3 1 30 1.04 3 2 23 1.08 3 3 22 1.11 3 4 23 1.12 3 5 27 1.12 3 6 19 1.17 4 1 42.5 1.07 4 2 34 1.08 4 3 32 1.13 4 4 15 1.11 4 5 23 1.07 4 6 14 1.07 5 1 25 .96 5 2 25 1.01 5 3 32 1 5 4 27 .97 5 5 23 .97 5 6 30 .99 6 1 28 .95 6 2 22 .99 6 3 20 .95 6 4 27 .95 6 5 23 .97 6 6 28 .98 7 1 15 1.06 7 2 14 1.03 7 3 11 1.05 7 4 8 1.03 7 5 8 1.04 7 6 10 1.02 8 1 31 1 8 2 28 1.01 8 3 31 .97 8 4 14 .98 8 5 14 .97 8 6 7 .97 9 1 27 .99 9 2 23 1 9 3 14 1 9 4 16 1.01 9 5 12 1.01 9 6 10 1.01 10 1 13.5 1.02 10 2 13 1.03 10 3 12 1 10 4 11 1.04 10 5 10 1.03 10 6 8 1.02 11 1 20.5 1.06 11 2 20 1.14 11 3 20 1.12 11 4 20 1.13 11 5 22 1.11 11 6 12 1.13 12 1 10.5 .99 12 2 12 .96 12 3 14 .95 12 4 17 .97 12 5 19 .94 12 6 17 .95 13 1 39 1.03 13 2 37 1.11 13 3 34 1.13 13 4 26 1.12 13 5 19 1.1 13 6 23 1.11 14 1 29.5 .96 14 2 23 .98 14 3 23 .99 14 4 21 .97 14 5 10 1 14 6 6 .99 15 1 21.5 .98 15 2 15 .96 15 3 15 .96 15 4 16 .97 15 5 14 .96 15 6 17 .95 16 1 39 1.05 16 2 39 1.07 16 3 40 1.07 16 4 36 1.06 16 5 27 1.06 16 6 24 1.05 17 1 22.5 1.01 17 2 18 1.02 17 3 17 1.03 17 4 16 1.04 17 5 18 1.04 17 6 4 1.02 18 1 35 1.05 18 2 30 1.09 18 3 29 1.05 18 4 29 1.07 18 5 22 1.08 18 6 25 1.03 19 1 12.5 1 19 2 .99 19 3 13 1.04 19 4 11.5 .98 19 5 9 1.04 19 6 9 1.05 20 1 14 1 20 2 2 .96 20 3 11 1.01 20 4 5 .98 20 5 .95 20 6 11 1.02 21 1 37.5 1.01 21 2 44 1.04 21 3 31 .96 21 4 1 21 5 41 .98 21 6 42.5 .99 22 1 19.5 .92 22 2 25 .91 22 3 25 .9 22 4 7.5 .88 22 5 13 .89 22 6 14 .88 23 1 30 .97 23 2 27 1.01 23 3 19 1.02 23 4 21 1.01 23 5 13 1.01 23 6 14 1.02 24 1 28 .96 24 2 22 .95 24 3 27 .96 24 4 22 .92 24 5 17 .96 24 6 23 .95 25 1 27 .96 25 2 16 .98 25 3 18 1.01 25 4 17 1 25 5 19 1 25 6 18.5 .94 26 1 36.5 1 26 2 1 26 3 45 1 26 4 1 26 5 25.5 1 26 6 13 .99 27 1 38 1.03 27 2 33 1.04 27 3 35 1.1 27 4 35 1.05 27 5 34 1 27 6 34 1.03 28 1 37 .92 28 2 34 .92 28 3 36 .91 28 4 30 .9 28 5 26 .91 28 6 36 .91 29 1 22.5 .97 29 2 20 .94 29 3 19 .97 29 4 14 .96 29 5 18 .93 29 6 14 .98 30 1 46.5 1.01 30 2 45 1.02 30 3 39 1.03 30 4 47 1.03 30 5 51.5 1.09 30 6 45 1.06
Comment