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
Get R-squared measure from IVLASSOHello, I'm using IVLASSO command to estimate a model. Is it possible to get R-squared measure from …
Logistic RegressionI want to run a logistic regression model and my independent variables are a mix of interval, ordina…
spmap lines not correctly sortedI have an odd problem with spmap. In some circumstances using the line() option the lines are not co…
How to generate percentages withing groups across yearsHello everyone, I am new to Stata and I need help regarding the code I can use for my question belo…
Getting only 1 variable when running estadd summ to save timeI am running Code: estadd summ, iqr But since there are lots of right-hand-side variables, and b…
Subscribe to:
Post Comments (Atom)
0 Response to How to specify residual correlation structure in glm
Post a Comment