Hello. I have a problem where stata excludes values.
I am running the following code:
glm positiv_pleural_sample ib0.d_d_inden_for_90_dage i.COPD i.CKD i.IHD_CHF i.DM i.age_group i.respirator_support i.circulatory_support i.renal_support i.gender_num i.ab_spektrum i.bloddyrkning i.luftvejssekret, link(log) family(poisson) vce(robust) eform
The result for age_group is missing age_group 1. The result i post is only showing age_group.
----------------------------------------------------------------------------------------
| Robust
positiv_pleural_sample | IRR std. err. z P>|z| [95% conf. interval]
-----------------------+----------------------------------------------------------------
|
age_group |
2 | .5104993 .3450695 -0.99 0.320 .1357156 1.920262
3 | .2002841 .1243218 -2.59 0.010 .0593311 .676099
4 | .1381519 .0931424 -2.94 0.003 .0368531 .5178923
----------------------------------------------------------------------------------------
age_group is coded as such:
replace age_group = 1 if alder_ved_dræn >= 18 & alder_ved_dræn <= 25
replace age_group = 2 if alder_ved_dræn >= 26 & alder_ved_dræn <= 50
replace age_group = 3 if alder_ved_dræn >= 51 & alder_ved_dræn <= 75
replace age_group = 4 if alder_ved_dræn >= 76 & alder_ved_dræn <= 100
I dont have any missing values in age_group. I got a total of 13 sampels in the age_group 1.
What can i do so age_group 1 is not excluded.
Thanks in advance.
I am running the following code:
glm positiv_pleural_sample ib0.d_d_inden_for_90_dage i.COPD i.CKD i.IHD_CHF i.DM i.age_group i.respirator_support i.circulatory_support i.renal_support i.gender_num i.ab_spektrum i.bloddyrkning i.luftvejssekret, link(log) family(poisson) vce(robust) eform
The result for age_group is missing age_group 1. The result i post is only showing age_group.
----------------------------------------------------------------------------------------
| Robust
positiv_pleural_sample | IRR std. err. z P>|z| [95% conf. interval]
-----------------------+----------------------------------------------------------------
|
age_group |
2 | .5104993 .3450695 -0.99 0.320 .1357156 1.920262
3 | .2002841 .1243218 -2.59 0.010 .0593311 .676099
4 | .1381519 .0931424 -2.94 0.003 .0368531 .5178923
----------------------------------------------------------------------------------------
age_group is coded as such:
replace age_group = 1 if alder_ved_dræn >= 18 & alder_ved_dræn <= 25
replace age_group = 2 if alder_ved_dræn >= 26 & alder_ved_dræn <= 50
replace age_group = 3 if alder_ved_dræn >= 51 & alder_ved_dræn <= 75
replace age_group = 4 if alder_ved_dræn >= 76 & alder_ved_dræn <= 100
I dont have any missing values in age_group. I got a total of 13 sampels in the age_group 1.
What can i do so age_group 1 is not excluded.
Thanks in advance.
Comment