Hi everyone!
I would like to check with you 2 questions I have still about this project. I am using Fixed Effects and Random Effects to estimate the hospital-specific effect (hospital effectj). For Fixed Effects I am using Least Square Dummy Variable Analysis and for RE I am planning to use -glm- and -mixed- commands because I want to use both techniques: maximum likelihood and Least-Squares Optimization and -mixed- only uses maximum likelihood, so I will use -glm- for Least-Squares Optimization. I am not using xtset or xtreg because I only have 2 waves: baseline and 6months, as mentioned before, and I have 2 different variables for each timeframe: one for baseline and one for 6months, the data is not long because my model requires both variables in the regression:
quality_of_life_6monthsij = controlsij + quality_of_life_0monthsij + hospital effectj + error termij
1) I am wondering if this approach seems ok to you? My objective is to compare results from all these techniques.
2) can I use glm if I have a 2level model? Because the -mixed- I can specify 2 levels, but in -glm- I cannot. Can you please help?
Thank you
Oliveira
I would like to check with you 2 questions I have still about this project. I am using Fixed Effects and Random Effects to estimate the hospital-specific effect (hospital effectj). For Fixed Effects I am using Least Square Dummy Variable Analysis and for RE I am planning to use -glm- and -mixed- commands because I want to use both techniques: maximum likelihood and Least-Squares Optimization and -mixed- only uses maximum likelihood, so I will use -glm- for Least-Squares Optimization. I am not using xtset or xtreg because I only have 2 waves: baseline and 6months, as mentioned before, and I have 2 different variables for each timeframe: one for baseline and one for 6months, the data is not long because my model requires both variables in the regression:
quality_of_life_6monthsij = controlsij + quality_of_life_0monthsij + hospital effectj + error termij
1) I am wondering if this approach seems ok to you? My objective is to compare results from all these techniques.
2) can I use glm if I have a 2level model? Because the -mixed- I can specify 2 levels, but in -glm- I cannot. Can you please help?
Thank you
Oliveira
Comment