-
Notifications
You must be signed in to change notification settings - Fork 0
/
State fixed effects and non linear age.do
108 lines (67 loc) · 5.27 KB
/
State fixed effects and non linear age.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
cd "C:\Users\3043340\Box\Cost Variation Final\Tables"
use cost_variation, clear
/*Models NO FE Non Log transformed */
reg pat_spend ib1.spend_quintiles
outreg2 using models.doc, replace alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc
outreg2 using models.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure
outreg2 using models.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles
outreg2 using models.doc, append alpha(0.001, 0.01, 0.05) dec(2)
/*Models FE Non Log transformed */
reg pat_spend ib1.spend_quintiles i.state_code
outreg2 using femodels.doc, replace alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc i.state_code
outreg2 using femodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure i.state_code
outreg2 using femodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles i.state_code
outreg2 using femodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
/*Models NO FE Non Log transformed NO QUINTILES*/
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc
outreg2 using nqmodels.doc, replace alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure
outreg2 using nqmodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles
outreg2 using nqmodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
/*Models FE Non Log transformed NO QUINTILES*/
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc i.state_code
outreg2 using nqfemodels.doc, replace alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure i.state_code
outreg2 using nqfemodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
reg pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles i.state_code
outreg2 using nqfemodels.doc, append alpha(0.001, 0.01, 0.05) dec(2)
/*Models NO FE Log transformed */
reg ln_spend ib1.spend_quintiles
outreg2 using lnmodels.doc, replace
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc
outreg2 using lnmodels.doc, append
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure
outreg2 using lnmodels.doc, append
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles
outreg2 using lnmodels.doc, append
/*Models FE Non Log transformed */
reg ln_spend ib1.spend_quintiles i.state_code
outreg2 using lnfemodels.doc, replace
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc i.state_code
outreg2 using lnfemodels.doc, append
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure i.state_code
outreg2 using lnfemodels.doc, append
reg ln_spend ib1.spend_quintiles weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_go per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 ib4.hhi_quartiles i.state_code
outreg2 using lnfemodels.doc, append
bysort spend_quintiles: sum pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_gov per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 hhi
foreach var of varlist pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_gov per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 hhi {
gen `var'_1 = `var' if spend_quintiles == 1
gen `var'_2 = `var' if spend_quintiles == 2
gen `var'_3 = `var' if spend_quintiles == 3
gen `var'_4 = `var' if spend_quintiles == 4
gen `var'_5 = `var' if spend_quintiles == 5
}
foreach var of varlist pat_spend weightedage percent_dual percent_non_white percent_female weightedhcc percent_fp percent_gov per_tenure per_cap_hosp percap_pcp per_cap_nursin median2 hhi{
ttest `var'_2 == `var'_1, unpaired
ttest `var'_3 == `var'_1, unpaired
ttest `var'_4 == `var'_1, unpaired
ttest `var'_5 == `var'_1, unpaired
}
reg