Hello,
I am studying mortality rates, and have modeled rates and some explanatory variables with a Poisson regression.
My dataset contains 500.000 individual records with the vital status, exposure time, and explanatory variables; I have st_setted and st_splitted them.
Here are the variables:
_d = death status
curage= 5y agegroup at start of interval
gewest= region
educat4 = educational level in 4 categories
empl4= employment status in 4 categories
newcomf= comfort level of the house (4 cat)
owner= being owner or tenant (2 cat)
isol= entourage (3 categories)
y= time of exposure
I have run a Poisson regression, then looked at the goodness of fit of my model.
My problem is that the results of the goodness of fit tests (the deviance and the Pearson chi square) look strange :
they both give extreme results , 0 and 1; moreover, they give opposite results.
This is unexpected , so I suppose I made something wrong ; please could you help to find my mistake ?
Thanks, Françoise
I am studying mortality rates, and have modeled rates and some explanatory variables with a Poisson regression.
My dataset contains 500.000 individual records with the vital status, exposure time, and explanatory variables; I have st_setted and st_splitted them.
Here are the variables:
_d = death status
curage= 5y agegroup at start of interval
gewest= region
educat4 = educational level in 4 categories
empl4= employment status in 4 categories
newcomf= comfort level of the house (4 cat)
owner= being owner or tenant (2 cat)
isol= entourage (3 categories)
y= time of exposure
I have run a Poisson regression, then looked at the goodness of fit of my model.
Code:
poisson _d curage i.gewest ib4.educat4 i.empl4 ib4.newcomf2 if sex==1, e(y) irr estat gof
they both give extreme results , 0 and 1; moreover, they give opposite results.
This is unexpected , so I suppose I made something wrong ; please could you help to find my mistake ?
HTML Code:
Deviance goodness-of-fit = 61023.65 Prob > chi2(443788) = 1.0000 Pearson goodness-of-fit = 3062899 Prob > chi2(443788) = 0.0000
Thanks, Françoise
Comment