Dear all, I have a dataset with data from different European countries, repeated in the year.
My outcome ("vaccin") is the percentage of vaccinated people.
Adjustment variables are the gross product ("gdpx"), the percentage of women with high level of education ("highfemale") and the level of trust in government ("trustingov").
My interest is to trace the trajectory of how the percentage of vaccinated people varies as each year passes starting from the moment of the beginning of the vaccination campaign ("yfromi", years from initial campaign).
I wonder if using a random intercept model gives response to my research question.
In the past, I have decomputed time-dependent covariates into their within- and between-variability for a similar analysis. But I would like to avoid complicating matters.
Eventually I might consider investigating the need for an autoregressive correlation matrix.
I have data fron 15 countries. In the dataex below I only show you four.
I thank you in advance.
My outcome ("vaccin") is the percentage of vaccinated people.
Adjustment variables are the gross product ("gdpx"), the percentage of women with high level of education ("highfemale") and the level of trust in government ("trustingov").
My interest is to trace the trajectory of how the percentage of vaccinated people varies as each year passes starting from the moment of the beginning of the vaccination campaign ("yfromi", years from initial campaign).
I wonder if using a random intercept model gives response to my research question.
In the past, I have decomputed time-dependent covariates into their within- and between-variability for a similar analysis. But I would like to avoid complicating matters.
Code:
mixed vaccin highfemale gdpx trustingov i.yfromi || Country: margin i.yfromi marginsplot
I have data fron 15 countries. In the dataex below I only show you four.
I thank you in advance.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str51 Country float yfromi byte vaccin float gdpx double highfemale int trustingov "Germany" . . .26205033 . . "Germany" . . .2664895 . . "Germany" . . .2862479 . . "Germany" . . .303689 . 49 "Germany" . . .3156603 . 36 "Germany" . . .30757955 . 40 "Germany" 3 27 .3249038 . 32 "Germany" 4 27 .34838015 . 32 "Germany" 5 27 .35571855 . 39 "Germany" 6 29 .37007475 . 38 "Germany" 7 31 .3882204 . 48 "Germany" 8 33 .3966575 21.3 38 "Germany" 9 37 .4246713 22.1 39 "Germany" 10 40 .4472591 22.6 59 "Germany" 11 43 .46653605 23.2 54 "Germany" 12 43 .492498 24 45 "Germany" 13 43 .4880368 25.4 61 "Germany" 14 47 .5202314 26.3 50 "Germany" 15 53 .56638926 26.5 49 "Germany" 16 54 .5763466 27.7 44 "Germany" . . . 29 34 "Germany" . . . . . "Italy" . . .17108352 . . "Italy" . . .1753017 . . "Italy" . . .18956916 . . "Italy" . . .20041035 . 37 "Italy" . . .2097399 . 15 "Italy" . . .20536943 . 26 "Italy" 1 44 .2092363 . 25 "Italy" 2 52 .2184514 . 23 "Italy" 3 54 .2183805 . 11 "Italy" 4 55 .2198919 . 10 "Italy" 5 50 .22117 . 18 "Italy" 6 56 .2252253 17.6 16 "Italy" 7 53 .24336183 17.9 15 "Italy" 8 50 .25286356 19.1 17 "Italy" 9 40 .26096517 19.8 15 "Italy" 10 53 .2787073 20.1 30 "Italy" 11 31 .26412037 20.6 29 "Italy" 12 32 .29463336 20.8 38 "Italy" 13 39 .3317676 21.1 33 "Italy" 14 45 .3409903 22.2 36 "Italy" . . . 23 33 "Italy" . . . . . "Serbia" . . .006505113 . . "Serbia" . . .00699257 . . "Serbia" . . .007756601 . . "Serbia" . . .008625991 . . "Serbia" . . .009645332 . . "Serbia" . . .009539871 . . "Serbia" 0 2 .017489076 25.5 48 "Serbia" 1 3 .01904064 26.6 43 "Serbia" . . . 28.6 49 "Serbia" . . . . . "Spain" . . .11229786 . . "Spain" . . .1206124 . . "Spain" . . .13654529 . . "Spain" . . .147156 . 52 "Spain" . . .1532567 . 55 "Spain" . . .14929554 . 29 "Spain" 3 64 .14815281 . 20 "Spain" 4 66 .14964943 . 21 "Spain" 5 71 .1490647 . 13 "Spain" 6 75 .1519935 . 9 "Spain" 7 73 .1568559 . 11 "Spain" 8 79 .16358323 34.6 14 "Spain" 9 78 .1747417 35.4 14 "Spain" 10 82 .1854711 35.8 18 "Spain" 11 76 .19187716 36.6 17 "Spain" 12 79 .20752287 37.9 25 "Spain" 13 79 .18625443 39 25 "Spain" 14 77 .2099468 39.4 22 "Spain" 15 81 .24116737 39.9 23 "Spain" 16 75 .25735554 40.4 28 "Spain" . . . 40.7 27 "Spain" . . . . . end
Comment