Setup
First we load the MHAS 2018 sample, and restrict the sample to people who have diabetes, and older than 50 years old.
Add Suburban as a Locality
Now let’s observe the models with locality rather than urban. With regards to locality:
- 0 = Rural (Less than 2500 people)
- 1 = Suburban (2500 - 100,000 people)
- 2 = Urban (100,000+ people)
|
|
|
|
Dependent variable:
|
|
|
|
|
|
log(med_cost)
|
log(visit_cost)
|
log(med_cost)
|
log(visit_cost)
|
|
|
(1)
|
(2)
|
(3)
|
(4)
|
|
|
|
as.factor(locality)1
|
0.019
|
0.624*
|
0.015
|
0.613*
|
|
|
(0.396)
|
(0.368)
|
(0.397)
|
(0.369)
|
|
|
|
|
|
|
|
as.factor(locality)2
|
1.348***
|
1.702***
|
1.346***
|
1.694***
|
|
|
(0.515)
|
(0.479)
|
(0.515)
|
(0.479)
|
|
|
|
|
|
|
|
BMI
|
|
|
-0.005
|
-0.014
|
|
|
|
|
(0.023)
|
(0.022)
|
|
|
|
|
|
|
|
as.factor(female)1
|
-0.244
|
0.336
|
-0.235
|
0.363
|
|
|
(0.397)
|
(0.369)
|
(0.400)
|
(0.372)
|
|
|
|
|
|
|
|
as.factor(public_coverage)1
|
-1.445***
|
-1.951***
|
-1.446***
|
-1.954***
|
|
|
(0.420)
|
(0.391)
|
(0.420)
|
(0.391)
|
|
|
|
|
|
|
|
age
|
0.026
|
0.056***
|
0.026
|
0.056***
|
|
|
(0.023)
|
(0.021)
|
(0.023)
|
(0.021)
|
|
|
|
|
|
|
|
as.factor(married)1
|
-0.593*
|
0.410
|
-0.595*
|
0.405
|
|
|
(0.351)
|
(0.326)
|
(0.351)
|
(0.326)
|
|
|
|
|
|
|
|
as.factor(employed)1
|
0.350
|
1.539***
|
0.352
|
1.545***
|
|
|
(0.411)
|
(0.383)
|
(0.412)
|
(0.383)
|
|
|
|
|
|
|
|
educ
|
0.108**
|
0.079*
|
0.108**
|
0.078*
|
|
|
(0.044)
|
(0.041)
|
(0.044)
|
(0.041)
|
|
|
|
|
|
|
|
as.factor(depression)1
|
0.653*
|
-0.067
|
0.652*
|
-0.069
|
|
|
(0.339)
|
(0.315)
|
(0.339)
|
(0.315)
|
|
|
|
|
|
|
|
as.factor(smoker)1
|
-1.158***
|
-0.825**
|
-1.161***
|
-0.832**
|
|
|
(0.361)
|
(0.336)
|
(0.361)
|
(0.336)
|
|
|
|
|
|
|
|
Constant
|
-1.247
|
-6.957***
|
-1.088
|
-6.492***
|
|
|
(1.964)
|
(1.826)
|
(2.119)
|
(1.970)
|
|
|
|
|
|
|
|
|
|
Observations
|
1,669
|
1,669
|
1,669
|
1,669
|
|
R2
|
0.026
|
0.040
|
0.026
|
0.041
|
|
Adjusted R2
|
0.020
|
0.035
|
0.020
|
0.034
|
|
Residual Std. Error
|
6.581 (df = 1658)
|
6.121 (df = 1658)
|
6.583 (df = 1657)
|
6.122 (df = 1657)
|
|
F Statistic
|
4.418*** (df = 10; 1658)
|
6.996*** (df = 10; 1658)
|
4.018*** (df = 11; 1657)
|
6.393*** (df = 11; 1657)
|
|
|
|
Note:
|
p<0.1; p<0.05; p<0.01
|
Add Interactions of Gender
|
|
|
|
Dependent variable:
|
|
|
|
|
|
log(med_cost)
|
log(visit_cost)
|
log(med_cost)
|
log(visit_cost)
|
|
|
(1)
|
(2)
|
(3)
|
(4)
|
|
|
|
as.factor(locality)1
|
-0.307
|
0.401
|
-0.309
|
0.395
|
|
|
(0.641)
|
(0.597)
|
(0.642)
|
(0.597)
|
|
|
|
|
|
|
|
as.factor(locality)2
|
2.296***
|
2.009**
|
2.299***
|
2.016**
|
|
|
(0.853)
|
(0.794)
|
(0.853)
|
(0.794)
|
|
|
|
|
|
|
|
BMI
|
|
|
-0.006
|
-0.014
|
|
|
|
|
(0.024)
|
(0.022)
|
|
|
|
|
|
|
|
as.factor(female)1
|
-0.201
|
0.306
|
-0.187
|
0.339
|
|
|
(0.463)
|
(0.430)
|
(0.466)
|
(0.434)
|
|
|
|
|
|
|
|
as.factor(public_coverage)1
|
-1.441***
|
-1.951***
|
-1.442***
|
-1.954***
|
|
|
(0.420)
|
(0.391)
|
(0.420)
|
(0.391)
|
|
|
|
|
|
|
|
age
|
0.024
|
0.056***
|
0.024
|
0.055**
|
|
|
(0.023)
|
(0.021)
|
(0.023)
|
(0.022)
|
|
|
|
|
|
|
|
as.factor(married)1
|
-0.586*
|
0.410
|
-0.588*
|
0.406
|
|
|
(0.351)
|
(0.326)
|
(0.351)
|
(0.326)
|
|
|
|
|
|
|
|
as.factor(employed)1
|
0.319
|
1.528***
|
0.322
|
1.534***
|
|
|
(0.412)
|
(0.383)
|
(0.412)
|
(0.383)
|
|
|
|
|
|
|
|
educ
|
0.108**
|
0.079*
|
0.108**
|
0.078*
|
|
|
(0.044)
|
(0.041)
|
(0.044)
|
(0.041)
|
|
|
|
|
|
|
|
as.factor(depression)1
|
0.632*
|
-0.076
|
0.632*
|
-0.078
|
|
|
(0.339)
|
(0.315)
|
(0.339)
|
(0.315)
|
|
|
|
|
|
|
|
as.factor(smoker)1
|
-1.168***
|
-0.827**
|
-1.171***
|
-0.835**
|
|
|
(0.361)
|
(0.336)
|
(0.361)
|
(0.336)
|
|
|
|
|
|
|
|
as.factor(locality)1:as.factor(female)1
|
0.512
|
0.354
|
0.508
|
0.345
|
|
|
(0.806)
|
(0.750)
|
(0.806)
|
(0.750)
|
|
|
|
|
|
|
|
as.factor(locality)2:as.factor(female)1
|
-1.449
|
-0.466
|
-1.458
|
-0.488
|
|
|
(1.052)
|
(0.979)
|
(1.053)
|
(0.979)
|
|
|
|
|
|
|
|
Constant
|
-1.109
|
-6.888***
|
-0.918
|
-6.415***
|
|
|
(1.966)
|
(1.830)
|
(2.121)
|
(1.974)
|
|
|
|
|
|
|
|
|
|
Observations
|
1,669
|
1,669
|
1,669
|
1,669
|
|
R2
|
0.028
|
0.041
|
0.028
|
0.041
|
|
Adjusted R2
|
0.021
|
0.034
|
0.020
|
0.034
|
|
Residual Std. Error
|
6.580 (df = 1656)
|
6.123 (df = 1656)
|
6.582 (df = 1655)
|
6.124 (df = 1655)
|
|
F Statistic
|
3.915*** (df = 12; 1656)
|
5.872*** (df = 12; 1656)
|
3.616*** (df = 13; 1655)
|
5.450*** (df = 13; 1655)
|
|
|
|
Note:
|
p<0.1; p<0.05; p<0.01
|