Hello everyone,
I want to calculate a random effects model that measures the variance of slopes between countries (the sample contains 29 countries) in clusters of countries (4 clusters in total). The idea behind the model is to measure the effect of different values (10 values by Shalom Schwartz) on trust in institutions for each country in one specific cluster.
The relevant variables are:
Do I need the aggregated values for this? If not, the model for Security in Cluster 4, not taking the fixed intercepts into account, would look like this, correct?
Code:
xtmixed trust || cid: security if cluster == 4, cov(uns)
Then, when I want to include the fixed intercepts, I need to fix them in the model. As far as I understand it, I need to include them before the "||". So it would look like this:
Code:
xtmixed trust security || cid: security if cluster == 4, cov(uns)
However, the values seem a bit high, and I am not sure if I did it the right way. Does it make sense to include the same variable in the fixed and the random part of the xtmixed model?
Any help with my model is highly appreciated!
Thank you very much for your help!
Best regards,
Philipp Weimer
I want to calculate a random effects model that measures the variance of slopes between countries (the sample contains 29 countries) in clusters of countries (4 clusters in total). The idea behind the model is to measure the effect of different values (10 values by Shalom Schwartz) on trust in institutions for each country in one specific cluster.
The relevant variables are:
- "trust" (coded 1-30)
- "cluster" (coded 1-4), representing the 4 clusters the countries are sorted into
- "cid" (the country ID, 29 countries)
- security
- hedonism
- benevolence
- power
- achievement
- conformity
- tradition
- self-direction
- stimulation
- universalism
- cnt_se_mean
- cnt_he_mean
- cnt_be_mean
- cnt_po_mean
- cnt_ach_mean
- cnt_co_mean
- cnt_tr_mean
- cnt_sd_mean
- cnt_st_mean
- cnt_un_mean
Do I need the aggregated values for this? If not, the model for Security in Cluster 4, not taking the fixed intercepts into account, would look like this, correct?
Code:
xtmixed trust || cid: security if cluster == 4, cov(uns)
Then, when I want to include the fixed intercepts, I need to fix them in the model. As far as I understand it, I need to include them before the "||". So it would look like this:
Code:
xtmixed trust security || cid: security if cluster == 4, cov(uns)
However, the values seem a bit high, and I am not sure if I did it the right way. Does it make sense to include the same variable in the fixed and the random part of the xtmixed model?
Any help with my model is highly appreciated!
Thank you very much for your help!
Best regards,
Philipp Weimer
Comment