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
Producing three way graphHello Statalist I would like to produce a three way graph on stata like the one provided in the att…
Time series ARIMA, how to forecast future?Hi everyone, I am new to STATA time series, and here is a question I have on how to perform forecas…
mlogit + margins + testUsing Stata 15.1, I was wondering how I test for equality of the coefficients for the marginal effec…
Download collin command for stata and suitable value for vif ?I use command findit collin, and scroll to the last, then click collin from https://stats.idre.ucl…
Identify if single cell contains multiple substringsHi, I'd like to identify observations when a string variable contains multiple substrings. In my d…
Subscribe to:
Post Comments (Atom)
0 Response to How to specify residual correlation structure in glm
Post a Comment