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
R2000 in logistic regression and I can't find what is missingFirst off I want to say that I am new to Stata and also to statistics. I have searched for a solutio…
Constraining Discrimination Parameters in Three-parameter Logistic Item Response Theory ModelGood day everyone in the list, please how can I constrain a discrimination parameter in stata code g…
Is it possible to match families/groups and not individual observations?I have two datasets. One dataset has families of 2 members and the other dataset has families of une…
Panelregression with industry and year FEHello, i should perform a panelregression with industry and year FE and cluster by firm and year at…
Export data to RDS filesHello, For my work, I am using a combination of Stata and R. I would like to export my data from Sta…
Subscribe to:
Post Comments (Atom)
0 Response to How to specify residual correlation structure in glm
Post a Comment