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
Error with -fre- (SSC) when using strings with Chinese (traditional) textWhen using -fre- from Ben Jann (on SSC) with string variables containing Chinese (traditional) text,…
Destring-Ignore-Backtick Command with "Too Few Quotes" ErrorHi Everyone. Started using Stata a few weeks ago and now I am addicted! I am currently trying run th…
Logistic Additive Model, dfHow to include df in logistic model and generate graph like below with different degress of greedom?…
Replace missing values in group dataHi everyone, Was looking for a solution to the following problem. I have a panel data that has som…
Intergenerational Income Mobility analysis - Matching child information to parents across rowsHi, I am using Stata 16 and carrying out analysis on intergenerational income mobility, using the U…
Subscribe to:
Post Comments (Atom)
0 Response to How to specify residual correlation structure in glm
Post a Comment