Hello StataList,
This is my first time posting, but I've enjoyed the benefit of reading this list for many years. I'm writing in hopes of getting advice on the best way to operationalize a 3-level regression model where the highest level has to be a fixed (versus random) effect.
The levels are: months nested within patients nested within geographic areas. Patient is a random effect, but geographic area needs to be fixed. My outcome is cost, so it has lots of zeros and heavy right tails.
Ideally there would be an autoregressive or Toeplitz correlation structure on the months nested within patient, and some other correlation structure (probably exchangeable) for patients within geographic area.
I was hoping to use xtgee, but that does not accommodate fixed effect (FE) for the highest level.
So, two questions:
1. If I instead operationalized an xtgee with patient as the highest level (2-level model) and included a dummy variable for geographic region, would you consider that inference to be the same as one from a 3-level model with a FE for geographic region? I want my inference to be within geographic area, rather than adjusting for geographic area.
2. Is there a 3-level model command available for continuous outcomes that will let me use a FE for the highest level? I see xtmelogit and xtmepoisson but nothing "xtme" for continuous data.
My thanks for any feedback you can provide.
Risha
This is my first time posting, but I've enjoyed the benefit of reading this list for many years. I'm writing in hopes of getting advice on the best way to operationalize a 3-level regression model where the highest level has to be a fixed (versus random) effect.
The levels are: months nested within patients nested within geographic areas. Patient is a random effect, but geographic area needs to be fixed. My outcome is cost, so it has lots of zeros and heavy right tails.
Ideally there would be an autoregressive or Toeplitz correlation structure on the months nested within patient, and some other correlation structure (probably exchangeable) for patients within geographic area.
I was hoping to use xtgee, but that does not accommodate fixed effect (FE) for the highest level.
So, two questions:
1. If I instead operationalized an xtgee with patient as the highest level (2-level model) and included a dummy variable for geographic region, would you consider that inference to be the same as one from a 3-level model with a FE for geographic region? I want my inference to be within geographic area, rather than adjusting for geographic area.
2. Is there a 3-level model command available for continuous outcomes that will let me use a FE for the highest level? I see xtmelogit and xtmepoisson but nothing "xtme" for continuous data.
My thanks for any feedback you can provide.
Risha
Comment