. oaxaca SBP BMI age, by(population)
Blinder-Oaxaca decomposition Number of obs = 2,000
Model = linear
Group 1: population = 0 N of obs 1 = 1,000
Group 2: population = 1 N of obs 2 = 1,000
endowments: (X1 - X2) * b2
coefficients: X2 * (b1 - b2)
interaction: (X1 - X2) * (b1 - b2)
------------------------------------------------------------------------------
SBP | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
overall |
group_1 | 175.6579 .3630455 483.85 0.000 174.9464 176.3695
group_2 | 148.3537 .3165138 468.71 0.000 147.7334 148.9741
difference | 27.3042 .4816461 56.69 0.000 26.3602 28.24821
endowments | 11.45145 .6372081 17.97 0.000 10.20255 12.70036
coefficients | 14.32706 .6640514 21.58 0.000 13.02554 15.62858
interaction | 1.525692 .7903181 1.93 0.054 -.0233032 3.074687
-------------+----------------------------------------------------------------
endowments |
BMI | 7.825849 .5644088 13.87 0.000 6.719628 8.93207
age | 3.625604 .2893155 12.53 0.000 3.058556 4.192653
-------------+----------------------------------------------------------------
coefficients |
BMI | 4.497143 2.22776 2.02 0.044 .1308142 8.863471
age | .2580753 1.60092 0.16 0.872 -2.87967 3.395821
_cons | 9.571841 3.155704 3.03 0.002 3.386775 15.75691
-------------+----------------------------------------------------------------
interaction |
BMI | 1.477729 .7328098 2.02 0.044 .041448 2.91401
age | .0479629 .2975408 0.16 0.872 -.5352063 .631132
------------------------------------------------------------------------------
. oaxaca SBP BMI age, by(population) pooled
Blinder-Oaxaca decomposition Number of obs = 2,000
Model = linear
Group 1: population = 0 N of obs 1 = 1,000
Group 2: population = 1 N of obs 2 = 1,000
explained: (X1 - X2) * b
unexplained: X1 * (b1 - b) + X2 * (b - b2)
with b from pooled model (including group dummy)
------------------------------------------------------------------------------
| Robust
SBP | Coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
overall |
group_1 | 175.6579 .3627684 484.22 0.000 174.9469 176.3689
group_2 | 148.3537 .3162553 469.09 0.000 147.7339 148.9736
difference | 27.3042 .4812674 56.73 0.000 26.3602 28.24747
explained | 12.34329 .492306 25.07 0.000 11.37839 13.30819
unexplained | 14.96091 .5501029 27.20 0.000 13.88273 16.0391
-------------+----------------------------------------------------------------
explained |
BMI | 8.687944 .4237441 20.50 0.000 7.857421 9.518467
age | 3.655347 .2575167 14.19 0.000 3.150623 4.16007
-------------+----------------------------------------------------------------
unexplained |
BMI | 5.112776 2.575692 1.99 0.047 .0645124 10.16104
age | .2762958 1.752934 0.16 0.875 -3.159391 3.711983
_cons | 9.571841 3.140148 3.05 0.002 3.417265 15.72642
------------------------------------------------------------------------------
. oaxaca SBP BMI age, by(population) pooled vce(bootstrap, reps(100))
(running oaxaca on estimation sample)
Bootstrap replications (100)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................................................. 50
.................................................. 100
Blinder-Oaxaca decomposition Number of obs = 2,000
Replications = 100
Model = linear
Group 1: population = 0 N of obs 1 = 1,000
Group 2: population = 1 N of obs 2 = 1,000
explained: (X1 - X2) * b
unexplained: X1 * (b1 - b) + X2 * (b - b2)
with b from pooled model (including group dummy)
------------------------------------------------------------------------------
| Observed Bootstrap Normal-based
SBP | coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
overall |
group_1 | 175.6579 .3764647 466.60 0.000 174.9201 176.3958
group_2 | 148.3537 .3115105 476.24 0.000 147.7432 148.9643
difference | 27.3042 .4992096 54.69 0.000 26.32577 28.28264
explained | 12.34329 .4562706 27.05 0.000 11.44902 13.23757
unexplained | 14.96091 .5541467 27.00 0.000 13.87481 16.04702
-------------+----------------------------------------------------------------
explained |
BMI | 8.687944 .3929794 22.11 0.000 7.917719 9.45817
age | 3.655347 .2515681 14.53 0.000 3.162282 4.148411
-------------+----------------------------------------------------------------
unexplained |
BMI | 5.112776 2.600104 1.97 0.049 .0166653 10.20889
age | .2762958 1.790707 0.15 0.877 -3.233426 3.786018
_cons | 9.571841 3.214086 2.98 0.003 3.272348 15.87133
------------------------------------------------------------------------------
. oaxaca SBP BMI age (functional: adl iadl), by(population) pooled
Blinder-Oaxaca decomposition Number of obs = 2,000
Model = linear
Group 1: population = 0 N of obs 1 = 1,000
Group 2: population = 1 N of obs 2 = 1,000
explained: (X1 - X2) * b
unexplained: X1 * (b1 - b) + X2 * (b - b2)
with b from pooled model (including group dummy)
------------------------------------------------------------------------------
| Robust
SBP | Coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
overall |
group_1 | 175.6579 .3627773 484.20 0.000 174.9469 176.369
group_2 | 148.3537 .3162586 469.09 0.000 147.7339 148.9736
difference | 27.3042 .4812763 56.73 0.000 26.3609 28.24749
explained | 15.66607 .5348148 29.29 0.000 14.61785 16.71429
unexplained | 11.63813 .556866 20.90 0.000 10.5467 12.72957
-------------+----------------------------------------------------------------
explained |
BMI | 8.621602 .4086543 21.10 0.000 7.820655 9.42255
age | 3.633696 .2511465 14.47 0.000 3.141458 4.125934
functional | 3.410773 .2456179 13.89 0.000 2.929371 3.892175
-------------+----------------------------------------------------------------
unexplained |
BMI | 5.211536 2.475471 2.11 0.035 .3597013 10.06337
age | -.5488508 1.642777 -0.33 0.738 -3.768635 2.670934
functional | 1.869933 .7690486 2.43 0.015 .3626253 3.37724
_cons | 5.105516 3.064359 1.67 0.096 -.9005176 11.11155
------------------------------------------------------------------------------
functional: adl iadl
. svyset [pweight=wt]
Sampling weights: wt
VCE: linearized
Single unit: missing
Strata 1: <one>
Sampling unit 1: <observations>
FPC 1: <zero>
. oaxaca SBP BMI age, by(population) pooled svy
Blinder-Oaxaca decomposition
Number of strata = 1 Number of obs = 2,000
Number of PSUs = 2,000 Population size = 1,994.755
Design df = 1,999
Model = linear
Group 1: population = 0 N of obs 1 = 1,000
Group 2: population = 1 N of obs 2 = 1,000
explained: (X1 - X2) * b
unexplained: X1 * (b1 - b) + X2 * (b - b2)
with b from pooled model (including group dummy)
------------------------------------------------------------------------------
| Linearized
SBP | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
overall |
group_1 | 175.6635 .3714922 472.86 0.000 174.935 176.3921
group_2 | 148.2421 .3209693 461.86 0.000 147.6126 148.8716
difference | 27.42144 .4909457 55.85 0.000 26.45862 28.38426
explained | 12.38956 .5055727 24.51 0.000 11.39806 13.38107
unexplained | 15.03188 .5663327 26.54 0.000 13.92121 16.14254
-------------+----------------------------------------------------------------
explained |
BMI | 8.660259 .4322472 20.04 0.000 7.812557 9.507962
age | 3.729302 .26568 14.04 0.000 3.208263 4.250341
-------------+----------------------------------------------------------------
unexplained |
BMI | 5.686509 2.606806 2.18 0.029 .574167 10.79885
age | .8568907 1.787163 0.48 0.632 -2.648007 4.361788
_cons | 8.488478 3.228003 2.63 0.009 2.157876 14.81908
------------------------------------------------------------------------------
. fairlie hypertension BMI age, by(population)
Iteration 0: log likelihood = -297.88597
Iteration 1: log likelihood = -248.09585
Iteration 2: log likelihood = -236.09557
Iteration 3: log likelihood = -235.50543
Iteration 4: log likelihood = -235.50122
Logistic regression Number of obs = 1000
LR chi2(2) = 124.77
Prob > chi2 = 0.0000
Log likelihood = -235.50122 Pseudo R2 = 0.2094
------------------------------------------------------------------------------
hypertension | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
BMI | .2256419 .0296014 7.62 0.000 .1676243 .2836596
age | .0815386 .0113346 7.19 0.000 .0593232 .103754
_cons | -9.082766 1.145593 -7.93 0.000 -11.32809 -6.837446
------------------------------------------------------------------------------
Decomposition replications (100)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................................................. 50
.................................................. 100
Non-linear decomposition by population (G) Number of obs = 2,000
N of obs G=0 = 1000
N of obs G=1 = 1000
Pr(Y!=0|G=0) = .912
Pr(Y!=0|G=1) = .117
Difference = .795
Total explained = .3191979
------------------------------------------------------------------------------
hypertension | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
BMI | .2086073 .0300823 6.93 0.000 .149647 .2675675
age | .1105906 .0130714 8.46 0.000 .0849712 .1362101
------------------------------------------------------------------------------
. fairlie hypertension BMI age (functional: adl iadl) (education: educ2 educ3), by(population) pooled(population) ro reps(300) nodots
Iteration 0: log likelihood = -1385.4532
Iteration 1: log likelihood = -622.80221
Iteration 2: log likelihood = -527.17913
Iteration 3: log likelihood = -505.54053
Iteration 4: log likelihood = -503.60758
Iteration 5: log likelihood = -503.58515
Iteration 6: log likelihood = -503.58515
Logistic regression Number of obs = 2000
LR chi2(7) = 1763.74
Prob > chi2 = 0.0000
Log likelihood = -503.58515 Pseudo R2 = 0.6365
------------------------------------------------------------------------------
hypertension | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
population | -2.641675 .191328 -13.81 0.000 -3.016671 -2.266679
BMI | .2355785 .0214818 10.97 0.000 .193475 .277682
age | .0876521 .0078942 11.10 0.000 .0721797 .1031245
adl | .3744335 .067143 5.58 0.000 .2428356 .5060314
iadl | .1603661 .0532604 3.01 0.003 .0559775 .2647546
educ2 | -.0484708 .2146668 -0.23 0.821 -.46921 .3722684
educ3 | -.1819253 .2052617 -0.89 0.375 -.5842308 .2203803
_cons | -11.02567 .89291 -12.35 0.000 -12.77574 -9.275599
------------------------------------------------------------------------------
Non-linear decomposition by population (G) Number of obs = 2,000
N of obs G=0 = 1000
N of obs G=1 = 1000
Pr(Y!=0|G=0) = .912
Pr(Y!=0|G=1) = .117
Difference = .795
Total explained = .42865544
------------------------------------------------------------------------------
hypertension | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
BMI | .2395377 .0217517 11.01 0.000 .1969052 .2821702
age | .1116001 .0086092 12.96 0.000 .0947264 .1284738
functional | .0752909 .0129111 5.83 0.000 .0499856 .1005961
education | .0022268 .003724 0.60 0.550 -.0050722 .0095257
------------------------------------------------------------------------------
functional: adl iadl
education: educ2 educ3
. bootstrap, reps(100) seed(12345): fairlie hypertension BMI age, by(population)
(running fairlie on estimation sample)
Bootstrap replications (100)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................................................. 50
.................................................. 100
Non-linear decomposition by population (G) Number of obs = 2,000
Replications = 100
N of obs G=0 = 1000
N of obs G=1 = 1000
Pr(Y!=0|G=0) = .912
Pr(Y!=0|G=1) = .117
Difference = .795
Total explained = .3191979
------------------------------------------------------------------------------
| Observed Bootstrap Normal-based
hypertension | coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
BMI | .2086073 .0306764 6.80 0.000 .1484826 .2687319
age | .1105906 .0159045 6.95 0.000 .0794185 .1417628
------------------------------------------------------------------------------