All commands
| # |
content
log
|
|
|
1 [+]
|
#delimit
All properties
| key |
content |
| command |
#delimit |
| indent |
0 |
| parameters |
|
|
|
6 [+]
|
cap
prog
drop display_results
|
|
7 [+]
|
prog
def display_results
|
|
8 [+]
|
syntax
, [results_data(string) numstates_list(string)]
|
|
10 [+]
|
cap
log
close table4_out.csv
|
|
11 [+]
|
cap
log
close t4out
All properties
| key |
content |
| command |
log |
| indent |
1 |
| parameters |
close t4out |
| prefix |
cap |
|
|
12 [+]
|
qui
log
using table4_out.csv
, text replace name(t4out)
|
|
13 [+]
|
qui
log
off t4out
All properties
| key |
content |
| command |
log |
| indent |
1 |
| parameters |
off t4out |
| prefix |
qui |
|
|
15 [+]
|
foreach
ss
in `numstates_list' {
All properties
| key |
content |
| command |
foreach |
| in |
`numstates_list' { |
| indent |
1 |
| parameters |
ss |
|
|
17 [+]
|
drop
_all
All properties
| key |
content |
| command |
drop |
| indent |
2 |
| parameters |
_all |
|
|
18 [+]
|
use
`results_data'
if numstates == `ss'
|
|
20 [+]
|
gen
dof_nmk = numobs - K
All properties
| key |
content |
| command |
gen |
| indent |
2 |
| parameters |
dof_nmk = numobs - K |
|
|
21 [+]
|
gen
dof_gm1 = numstates - 1
All properties
| key |
content |
| command |
gen |
| indent |
2 |
| parameters |
dof_gm1 = numstates - 1 |
|
|
22 [+]
|
gen
dof_gm2 = numstates - 2
All properties
| key |
content |
| command |
gen |
| indent |
2 |
| parameters |
dof_gm2 = numstates - 2 |
|
|
24 [+]
|
gen
p_def_Tnk = 2 * ttail(dof_nmk,(abs(b - 0) / se_def))
|
|
25 [+]
|
gen
p_clu_Tnk = 2 * ttail(dof_nmk,(abs(b - 0) / se_clu))
|
|
26 [+]
|
gen
p_clu_Tg1 = 2 * ttail(dof_gm1,(abs(b - 0) / se_clu))
|
|
27 [+]
|
gen
p_clu_Tg2 = 2 * ttail(dof_gm2,(abs(b - 0) / se_clu))
|
|
28 [+]
|
gen
p_bsse_Tg1 = 2 * ttail(dof_gm1,(abs(b - 0) / se_clu_bs))
|
|
30 [+]
|
qui
gen
rej = .
All properties
| key |
content |
| command |
gen |
| indent |
2 |
| parameters |
rej = . |
| prefix |
qui |
|
|
31 [+]
|
foreach
mthd
in def_Tnk clu_Tnk clu_Tg1 clu_Tg2 bsse_Tg1 pairs_bs rad_res webb_res {
|
|
32 [+]
|
qui
replace
rej = (p_`mthd' < 0.05)
All properties
| key |
content |
| command |
replace |
| indent |
3 |
| parameters |
rej = (p_`mthd' < 0.05) |
| prefix |
qui |
|
|
33 [+]
|
qui
summ
rej
All properties
| key |
content |
| command |
summ |
| indent |
3 |
| parameters |
rej |
| prefix |
qui |
|
|
34 [+]
|
local
rej_rate_`mthd' = r(mean)
|
|
35 [+]
|
}
All properties
| key |
content |
| command |
} |
| indent |
2 |
| parameters |
|
|
|
37 [+]
|
qui
summ
numbsreps
All properties
| key |
content |
| command |
summ |
| indent |
2 |
| parameters |
numbsreps |
| prefix |
qui |
|
|
38 [+]
|
local
mc_reps = r(N)
All properties
| key |
content |
| command |
local |
| indent |
2 |
| parameters |
mc_reps = r(N) |
|
|
39 [+]
|
local
bs_reps = r(mean)
All properties
| key |
content |
| command |
local |
| indent |
2 |
| parameters |
bs_reps = r(mean) |
|
|
41 [+]
|
qui
summ
bs_misreps_b
All properties
| key |
content |
| command |
summ |
| indent |
2 |
| parameters |
bs_misreps_b |
| prefix |
qui |
|
|
42 [+]
|
local
bs_missed_b = r(mean)
|
|
44 [+]
|
qui
summ
bs_misreps_t
All properties
| key |
content |
| command |
summ |
| indent |
2 |
| parameters |
bs_misreps_t |
| prefix |
qui |
|
|
45 [+]
|
local
bs_missed_t = r(mean)
|
|
47 [+]
|
qui
log
on t4out
All properties
| key |
content |
| command |
log |
| indent |
2 |
| parameters |
on t4out |
| prefix |
qui |
|
|
48 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
49 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
50 [+]
|
di
"Num Clusters," _column(25) %6s "`ss'"
|
|
51 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
52 [+]
|
foreach
mthd
in def_Tnk clu_Tnk clu_Tg1 clu_Tg2 bsse_Tg1 pairs_bs rad_res webb_res {
|
|
53 [+]
|
di
"Rej. rate `mthd'," _column(35) %6.3f `rej_rate_`mthd''
All properties
| key |
content |
| command |
di |
| indent |
3 |
| parameters |
"Rej. rate `mthd'," _column(35) %6.3f `rej_rate_`mthd'' |
|
|
54 [+]
|
}
All properties
| key |
content |
| command |
} |
| indent |
2 |
| parameters |
|
|
|
55 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
56 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
57 [+]
|
di
"Number MC replications," _column(35) %6.0f `mc_reps'
|
|
58 [+]
|
di
"Number BS replications," _column(35) %6.0f `bs_reps'
|
|
59 [+]
|
di
"Number missed pairs BS - beta," _column(35) %6.0f `bs_missed_b'
|
|
60 [+]
|
di
"Number missed pairs BS - tstats," _column(35) %6.0f `bs_missed_t'
|
|
61 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
62 [+]
|
di
"-----------------------------------------"
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
"-----------------------------------------" |
|
|
63 [+]
|
di
All properties
| key |
content |
| command |
di |
| indent |
2 |
| parameters |
|
|
|
65 [+]
|
qui
log
off t4out
All properties
| key |
content |
| command |
log |
| indent |
2 |
| parameters |
off t4out |
| prefix |
qui |
|
|
67 [+]
|
}
All properties
| key |
content |
| command |
} |
| indent |
2 |
| parameters |
|
|
|
69 [+]
|
qui
log
close t4out
All properties
| key |
content |
| command |
log |
| indent |
2 |
| parameters |
close t4out |
| prefix |
qui |
|
|
71 [+]
|
end
All properties
| key |
content |
| command |
end |
| indent |
1 |
| parameters |
|
|