Hello all,
I'm trying to fit a Poisson model to the rate of hospitalizations for children under 5 years.
This is my code: glm adm_rate time month, family(poisson) link(nbinomial) offset(oset)
I have added time and month as explanatory variables.
The offset is the log of the number of children at each time point.
I would like to specify the residual correlation structure as autoregressive order 1 (AR(1)). I'm struggling with how to implement this using the glm command. Is this possible? If so, can someone help me with the best way to do this?
Thank you
David
Related Posts with How to specify residual correlation structure in glm
Panel RegressionHello, I am using StataSE 14 and currently working on my final thesis. My advisor told me to robust …
Unit Root Test Panel DataHi! I went help for Unit Root Test for Panel Data. I do Unit Root Test and the result is that. . …
Please help: How to create all possible combinations of several variables?Hello, Could you please help me with the below? I could not find an easier way to do this so far. I…
How to merge event dates in Stata having a duplicate companyHello Everyone, I have imported 2 files from excel to stata with all string variables. I know how t…
cdeco command in Stata 16Hello Everyone. I am trying to use cdeco command to decompose the gender difference in wages. The c…
Subscribe to:
Post Comments (Atom)
0 Response to How to specify residual correlation structure in glm
Post a Comment