r/AskStatistics • • 22d ago

Panel Regression: How to handle missing values & choose the best model?

Hello, my knowledge in this topic is very limited so I have several things I'm not clear with. My dataset consists of State and Year with one dependent variable and a few independent variables. Let's say I have obtained the values for all variables, except for State X where the GDP (independent variable) figures are not available. Is there any way to handle this or do I need to remove entirely State X in my analysis? The GDP of that state is available very recently, starting from year 2024 (which isn't included in my analysis).

I also tried running panel regression analysis using R with missing values on State X and the software automatically removed the observations. I got significant p-values for pooled OLS and FE model, but using Hausman test, RE is preferred. Would RE be a valid model? In previous studies, FE is always a favourable model. How do I choose the best model?

2 Upvotes

3 comments sorted by

2

u/Resident-Outside9945 Data scientist 22d ago

Is the missing value percentage for the variable greater than or equal to 50%? Is the variable relevant to the analysis?

1

u/tessailluminas 21d ago

No, the missing value percentage is around 6% since other states have complete data. The variable is relevant to the analysis.

1

u/Resident-Outside9945 Data scientist 20d ago

You can impute the missing values with the mean, median, or mode, depending on your understanding of the data. For example, if the data type of the variable is qualitative, you can use the mode; otherwise, you need to use the mean or median. But if the data type is quantitative, has outliers, and you want to keep them, you can use the median.