'I have a 34 countries in my dataset and when i run a multi-regression model in R, it drops 7 countries

Hi I have an issue when i run a multi-level regression model, i have country level and individual level variables.

In total i have 34 countries but in all my models when i run them R only passes through 27 countries. I am not sure which countries are not included, and is there a way to include all countries or at least know which ones are being dropped.

Here is my first model

model1 = lmer(corruption ~ Gini.Index + GDP + Democracy.Index + Political.Terror.Index + Economic.Freedom  + Regime + respondentage + 
            respondentgender + Education_Completed + Employment + European.Integration  + (1 | country), NewD, REML = FALSE )

The word country in the model is the variable that i merged my two datasets with. It is not the name of each country but their code. When i run this i get number of countries 27 rather than 34??

Anyone know what to do

Just to do, i do have missing data but i have coded all of those to NA. Some country variables are quite similar with each other but not fully the same!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source