Dear all,
I have longitudinal data and a binary treatment indicator. I would like to match my sample on one outcome variable at t1 to study whether the trajectories of the two groups differ, accounting for initial group differences. I generate a matching weight using entropy balancing. This works fine. When I test the balancing with a simple OLS regression on the outcome at t1 using the weights, the group difference is virtually zero. However, when I estimate the mixed model with all panel waves, I see large group differences, even at t1. The command is like follows:
I proceed to create a marginsplot which looks as follows:

as you can see, the groups are always different, even at t1, where the weights should force them to be equal. When I estimate the same model with regress, it works as intended. I am a bit surprised by this huge differences I see between the two models. From a statistical point of view, mixed is superior to regress as the data is panel. I wonder what causes this behaviour. Am I making a mistake here or is mixed not the right way? Any suggestions?
Best wishes
I have longitudinal data and a binary treatment indicator. I would like to match my sample on one outcome variable at t1 to study whether the trajectories of the two groups differ, accounting for initial group differences. I generate a matching weight using entropy balancing. This works fine. When I test the balancing with a simple OLS regression on the outcome at t1 using the weights, the group difference is virtually zero. However, when I estimate the mixed model with all panel waves, I see large group differences, even at t1. The command is like follows:
Code:
mixed outcome i.wave##i.group [pweight=mygenweight] || id:
as you can see, the groups are always different, even at t1, where the weights should force them to be equal. When I estimate the same model with regress, it works as intended. I am a bit surprised by this huge differences I see between the two models. From a statistical point of view, mixed is superior to regress as the data is panel. I wonder what causes this behaviour. Am I making a mistake here or is mixed not the right way? Any suggestions?
Best wishes
Comment