Hi
I am currently working on a multilevel logit model using melogit. The focus of the study is to compare predicted probabilities between different groups of countries. Countries are divided into five groups that corresponds to five different "welfare regimes". The analysis is based on a pooled sample of all seven waves of European Social Survey (ESS).
The question is whether my approach of obtaining predicted probabilities is correct. As I have done a lot of research to find answers on the web, I hope someone on this forum can help out.
Here is a description of the approach:
ESS data documentation states that comparisons of two or more countries or combining different countries to describe regions requires design weights in combination with population size weights (dweight*pweight=nweight). Thus, svyset for data:
I then run three different models (1) intercept-only, (2) individual-level variables, and (3) in the third and final model I add the country group (welfare regime) variable. The third model has the lowest AIC and BIC, and is therefore used in further analysis. Here is model 3:
To obtain predicted probabilities for all countries, controlling for other variables, I use the following code:
And for country group differences:
The two main questions are (i) whether the model has been weighted accurately, and (ii) whether I should use the “svy:” prefix. When I run the models with “svy:” prefix I cannot obtain AIC or BIC scores, and I also experience problems with calculating predicted probabilities.
Best
Tarjei W. Havneraas
I am currently working on a multilevel logit model using melogit. The focus of the study is to compare predicted probabilities between different groups of countries. Countries are divided into five groups that corresponds to five different "welfare regimes". The analysis is based on a pooled sample of all seven waves of European Social Survey (ESS).
The question is whether my approach of obtaining predicted probabilities is correct. As I have done a lot of research to find answers on the web, I hope someone on this forum can help out.
Here is a description of the approach:
ESS data documentation states that comparisons of two or more countries or combining different countries to describe regions requires design weights in combination with population size weights (dweight*pweight=nweight). Thus, svyset for data:
Code:
svyset country [pweight=nweight], vce(linearized) singleunit(missing) || idno
Code:
melogit y i.x i.essround i.x i.x x x i.welfareregime || country:, or
Code:
margins, at(x=(1 2 3)) post vsquish
Code:
margins, at(x=(1 2 3) welfareregime=x) post vsquish
Best
Tarjei W. Havneraas
Comment