Dear statalists,
I'm looking to generate the estimation of the outcome y (people reporting having gotten a certain healthcare) per region through the years.
I am using the command:
I also tried using:
There are 4 regions in total, but to spare the confusion i'm only giving the results given for Region A. As you can see, these two commands give very different results for Region A in 2013, for example. How do i know which one I should be using? Thanks.
Edit: I'm using Stata 17.0.
I'm looking to generate the estimation of the outcome y (people reporting having gotten a certain healthcare) per region through the years.
I am using the command:
melogit y i.region age i.sex i.urban, or
margins i.region, by(year)
margins i.region, by(year)
year#region | Margin | std. err. | [95% conf. | interval] |
2011#Region A | 0.176543 | 0.00068 | 0.175211 | 0.177875 |
2013#Region A | 0.174814 | 0.000676 | 0.173489 | 0.17614 |
2015#Region A | 0.177897 | 0.00068 | 0.176565 | 0.17923 |
2018#Region A | 0.226306 | 0.000822 | 0.224695 | 0.227917 |
melogit y i.region age i.sex i.urban if year==2013, or
margins i.region
I get the following:
margins i.region
I get the following:
Region | Margin | std. err. | [95% conf. | interval] |
Region A | 0.137029 | 0.001171 | 0.134733 | 0.139324 |
There are 4 regions in total, but to spare the confusion i'm only giving the results given for Region A. As you can see, these two commands give very different results for Region A in 2013, for example. How do i know which one I should be using? Thanks.
Edit: I'm using Stata 17.0.
Comment