Dear Stata users,
The command expoisson gives different results when the same covariates are specified in a different order.
Example:
. use http://www.stata-press.com/data/r13/cerebacc
(cerebrovascular accidents in hypotensive-treated and control groups)
. set seed 1234
. gen n = int(uniform()*10)
.
. expoisson count treat age [fw=n], nolog
Exact Poisson regression
Number of obs = 34
---------------------------------------------------------------------------
count | Coef. Suff. 2*Pr(Suff.) [95% Conf. Interval]
-------------+-------------------------------------------------------------
treat | -1.870824 13 0.0000 -2.541112 -1.281398
age | -.4106672 9 0.4479 -1.373402 .4943485
---------------------------------------------------------------------------
. expoisson count age treat [fw=n], nolog
Exact Poisson regression
Number of obs = 34
---------------------------------------------------------------------------
count | Coef. Suff. 2*Pr(Suff.) [95% Conf. Interval]
-------------+-------------------------------------------------------------
age | -.4437372 48 0.0168 -.8213309 -.0760211
treat | -1.254544 4 0.0275 -2.675837 -.1131803
---------------------------------------------------------------------------
Any clarification would be welcome.
Thank you very much!
The command expoisson gives different results when the same covariates are specified in a different order.
Example:
. use http://www.stata-press.com/data/r13/cerebacc
(cerebrovascular accidents in hypotensive-treated and control groups)
. set seed 1234
. gen n = int(uniform()*10)
.
. expoisson count treat age [fw=n], nolog
Exact Poisson regression
Number of obs = 34
---------------------------------------------------------------------------
count | Coef. Suff. 2*Pr(Suff.) [95% Conf. Interval]
-------------+-------------------------------------------------------------
treat | -1.870824 13 0.0000 -2.541112 -1.281398
age | -.4106672 9 0.4479 -1.373402 .4943485
---------------------------------------------------------------------------
. expoisson count age treat [fw=n], nolog
Exact Poisson regression
Number of obs = 34
---------------------------------------------------------------------------
count | Coef. Suff. 2*Pr(Suff.) [95% Conf. Interval]
-------------+-------------------------------------------------------------
age | -.4437372 48 0.0168 -.8213309 -.0760211
treat | -1.254544 4 0.0275 -2.675837 -.1131803
---------------------------------------------------------------------------
Any clarification would be welcome.
Thank you very much!
Comment