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) sourcedata(string)]
|
10 [+]
|
cap
log
close table2_out.csv
|
11 [+]
|
cap
log
close t2out
All properties
key |
content |
command |
log |
indent |
1 |
parameters |
close t2out |
prefix |
cap |
|
12 [+]
|
qui
log
using table2_out.csv
, text replace name(t2out)
|
13 [+]
|
qui
log
off t2out
All properties
key |
content |
command |
log |
indent |
1 |
parameters |
off t2out |
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_rob_Tnk = 2 * ttail(dof_nmk,(abs(b - 0) / se_rob))
|
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_CR2_Tg1 = 2 * ttail(dof_gm1,(abs(b - 0) / se_CR2))
|
29 [+]
|
gen
p_CR3_Tg1 = 2 * ttail(dof_gm1,(abs(b - 0) / se_CR3))
|
30 [+]
|
gen
p_CR2_Tik = 2 * ttail(dof_CR2_IK,(abs(b - 0) / se_CR2))
|
31 [+]
|
gen
p_clu_Tcss = 2 * ttail(dof_CSS,(abs(b - 0) / se_clu))
|
32 [+]
|
gen
p_bsse_Tg1 = 2 * ttail(dof_gm1,(abs(b - 0) / se_clu_bs))
|
34 [+]
|
qui
gen
rej = .
All properties
key |
content |
command |
gen |
indent |
2 |
parameters |
rej = . |
prefix |
qui |
|
35 [+]
|
foreach
mthd
in rob_Tnk clu_Tnk clu_Tg1 clu_Tg2 CR2_Tg1 CR3_Tg1 CR2_Tik clu_Tcss bsse_Tg1 pairs_bs rad_res rad_res_high rad_res_low webb_res rad_unres {
|
36 [+]
|
qui
summ
p_`mthd'
All properties
key |
content |
command |
summ |
indent |
3 |
parameters |
p_`mthd' |
prefix |
qui |
|
37 [+]
|
local
mean_p_`mthd' = r(mean)
|
38 [+]
|
qui
replace
rej = (p_`mthd' < 0.05)
All properties
key |
content |
command |
replace |
indent |
3 |
parameters |
rej = (p_`mthd' < 0.05) |
prefix |
qui |
|
39 [+]
|
qui
summ
rej
All properties
key |
content |
command |
summ |
indent |
3 |
parameters |
rej |
prefix |
qui |
|
40 [+]
|
local
rej_rate_`mthd' = r(mean)
|
41 [+]
|
}
All properties
key |
content |
command |
} |
indent |
2 |
parameters |
|
|
43 [+]
|
qui
summ
dof_CR2_IK
, detail
All properties
key |
content |
command |
summ |
indent |
2 |
options |
detail |
parameters |
dof_CR2_IK |
prefix |
qui |
|
44 [+]
|
local
IK_dof_mean = r(mean)
|
45 [+]
|
local
IK_dof_p5 = r(p5)
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
IK_dof_p5 = r(p5) |
|
46 [+]
|
local
IK_dof_p95 = r(p95)
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
IK_dof_p95 = r(p95) |
|
48 [+]
|
qui
summ
dof_CSS
, detail
All properties
key |
content |
command |
summ |
indent |
2 |
options |
detail |
parameters |
dof_CSS |
prefix |
qui |
|
49 [+]
|
local
CSS_dof_mean = r(mean)
|
51 [+]
|
qui
summ
numobs
All properties
key |
content |
command |
summ |
indent |
2 |
parameters |
numobs |
prefix |
qui |
|
52 [+]
|
local
nobs_mean = r(mean)
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
nobs_mean = r(mean) |
|
53 [+]
|
qui
summ
numbsreps
All properties
key |
content |
command |
summ |
indent |
2 |
parameters |
numbsreps |
prefix |
qui |
|
54 [+]
|
local
mc_reps = r(N)
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
mc_reps = r(N) |
|
55 [+]
|
local
bs_reps = r(mean)
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
bs_reps = r(mean) |
|
57 [+]
|
qui
summ
bs_misreps
All properties
key |
content |
command |
summ |
indent |
2 |
parameters |
bs_misreps |
prefix |
qui |
|
58 [+]
|
local
mean_bsreps_miss = r(mean)
|
60 [+]
|
local
datetime = datetime[1]
All properties
key |
content |
command |
local |
indent |
2 |
parameters |
datetime = datetime[1] |
|
62 [+]
|
qui
log
on t2out
All properties
key |
content |
command |
log |
indent |
2 |
parameters |
on t2out |
prefix |
qui |
|
63 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
64 [+]
|
di
"Num Clusters," _column(25) %6s "`ss'"
|
65 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
66 [+]
|
foreach
mthd
in rob_Tnk clu_Tnk clu_Tg1 clu_Tg2 CR2_Tg1 CR3_Tg1 CR2_Tik clu_Tcss bsse_Tg1 pairs_bs rad_res_low rad_res rad_res_high webb_res rad_unres {
|
67 [+]
|
di
"Rej. rate `mthd'," _column(25) %6.4f `rej_rate_`mthd''
All properties
key |
content |
command |
di |
indent |
3 |
parameters |
"Rej. rate `mthd'," _column(25) %6.4f `rej_rate_`mthd'' |
|
68 [+]
|
}
All properties
key |
content |
command |
} |
indent |
2 |
parameters |
|
|
69 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
70 [+]
|
di
"I-K dof (mean)," _column(25) %6.1f `IK_dof_mean'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"I-K dof (mean)," _column(25) %6.1f `IK_dof_mean' |
|
71 [+]
|
di
"I-K dof (p5)," _column(25) %6.1f `IK_dof_p5'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"I-K dof (p5)," _column(25) %6.1f `IK_dof_p5' |
|
72 [+]
|
di
"I-K dof (p95)," _column(25) %6.1f `IK_dof_p95'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"I-K dof (p95)," _column(25) %6.1f `IK_dof_p95' |
|
73 [+]
|
di
"CSS dof (mean)," _column(25) %6.1f `CSS_dof_mean'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"CSS dof (mean)," _column(25) %6.1f `CSS_dof_mean' |
|
74 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
75 [+]
|
di
"Mean num. observations," _column(25) %6.0f `nobs_mean'
|
76 [+]
|
di
"Number MC replications," _column(25) %6.0f `mc_reps'
|
77 [+]
|
di
"Number BS replications," _column(25) %6.0f `bs_reps'
|
78 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
79 [+]
|
di
"Avg miss prs BS reps, " _column(25) %6.0f `mean_bsreps_miss'
|
80 [+]
|
di
"Avg Rad Res p-avg, " _column(25) %6.4f `mean_p_rad_res'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"Avg Rad Res p-avg, " _column(25) %6.4f `mean_p_rad_res' |
|
81 [+]
|
di
"Avg Rad Res p-high, " _column(25) %6.4f `mean_p_rad_res_high'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"Avg Rad Res p-high, " _column(25) %6.4f `mean_p_rad_res_high' |
|
82 [+]
|
di
"Avg Rad Res p-low, " _column(25) %6.4f `mean_p_rad_res_low'
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"Avg Rad Res p-low, " _column(25) %6.4f `mean_p_rad_res_low' |
|
83 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
84 [+]
|
di
"Created: `datetime'"
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"Created: `datetime'" |
|
85 [+]
|
di
"Using: `sourcedata'"
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"Using: `sourcedata'" |
|
86 [+]
|
di
"-----------------------------------------"
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
"-----------------------------------------" |
|
87 [+]
|
di
All properties
key |
content |
command |
di |
indent |
2 |
parameters |
|
|
89 [+]
|
qui
log
off t2out
All properties
key |
content |
command |
log |
indent |
2 |
parameters |
off t2out |
prefix |
qui |
|
91 [+]
|
}
All properties
key |
content |
command |
} |
indent |
2 |
parameters |
|
|
93 [+]
|
qui
log
close t2out
All properties
key |
content |
command |
log |
indent |
2 |
parameters |
close t2out |
prefix |
qui |
|
95 [+]
|
end
All properties
key |
content |
command |
end |
indent |
1 |
parameters |
|
|