Hi,
I am trying to run a negative binomial population-average model in Stata 14. However, I am not sure what is the best approach to do this. Based on the comments from here: https://www.stata.com/statalist/archive/2010-12/msg00918.html, we estimated alpha using nbreg and then used the value of alpha in the xtgee model as follows: "xtgee v1 i.visit Age, i(ptid) corr(indep) fam(nb `alpha') robust"
Is this correct? Or should "alpha" be replaced by the default value of "1" in the xtgee?
We also tried using xtnbreg (instead of nbreg, then xtgee) - and the output for this is identical to that of the nbreg/xtgee with a value of 1 (instead of "alpha" estimated from nbreg). This output does differ quite a bit from using the value of "alpha" in the xtgee. Can anyone advise? Thanks.
Related Posts with xtnbreg or nbreg/xtgee?
Getting a different result w. do-file and copy-pastHello everyone, I am getting a different result when I run my do-file and when I copy-past my code …
getting months in different order for a graphHi all, I am creating a graph using twoway line and I have a variable called month that is ordered …
How to conclude the result of paralell-trend test following Borusyak's approach?I am doing a parallel trend test suggested by Borusyak by using event_plot My code and result is as …
customizable tables: issue with appending tablesIn my experience the option 'append' sometimes works and sometimes doesn't - could anyone explain th…
How to perform the pre-trend test in did_imputation?From reading the help file of did_imputation, I saw that pretrends(integer): if some value k>…
Subscribe to:
Post Comments (Atom)
0 Response to xtnbreg or nbreg/xtgee?
Post a Comment