Hi All,
Up to now I have benefitted a lot from this forum. One question I can’t get my head around is the following:
I have a longitudinal dataset in a long-format (the long-format is because I have variables that change every visit a patient comes is). I want to estimate the IR (by1.000) using poisson regression.
#poisson hpvinc i.agec i.smk, exposure(pdomo) irr#
#xtset id#
#xi: xtgee hpvinc i.agec i.smk, exposure(pdomo) eform family(poisson) corr(exc)#
#gen pdomo=(pdo/30.5)/1000#
Because the data is in long-format, would it be better to use GEE to take into account clustering of the individuals records within one id?
Both approaches give almost the same answer, with some subtle differences behind the comma for the IR as well as the 95%CI.
Thanks for your time,
Catharina
Related Posts with Estimating Incidence Rate using poisson regression
Parallel trends for difference-in-difference models with multiple periodsDear colleagues, I would appreciate if you may advise me on how to test for parallel trends in Stat…
dropping variablesHi all, I have daily stock returns in my dataset. One of the variables is the stock identifier (so f…
drop observations before new==1Dear All, I was asked the following question with data: Code: * Example generated by -dataex-. To i…
Chi-square test weighted sum of squared residualsHello Statalisters, I run the WLS regression: Code: reg salary edu sex [aw = inv_var] Where inv…
Missing AR(1) and AR(2) in System GMMHello, I am struggling to perform a system GMM analysis. I am new to this method and have read the …
Subscribe to:
Post Comments (Atom)
0 Response to Estimating Incidence Rate using poisson regression
Post a Comment