Tokens starting with m
file | # | command |
---|---|---|
set_directory_macros.do: | 6 [+] | global madedat = "`my_top_path'madedata\Colin JHR paper" |
: | 10 [+] | global madedat = "../data" |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 171 [+] | graph twoway (line Rademacher t_stat) (line Webb t_stat) , |
: | 177 [+] | graph twoway (line Rademacher t_stat if t_stat >= `lower' & t_stat <= `upper') (line Webb t_stat if t_stat >= `lower' & t_stat <= `upper') , |
file | # | command |
---|---|---|
t2_mcloop.do: | 134 [+] | use `main_data' , |
: | 176 [+] | merge 1:m pseudo_cluster using `main_data' , |
t3_ols.do: | 100 [+] | use statefip year `lhs'* `keyrhs'* using `main_data' , |
: | 126 [+] | qui use statefip using `main_data' |
: | 158 [+] | merge 1:m statefip using `main_data' , |
t4_mcloop.do: | 167 [+] | use `main_data' , |
: | 196 [+] | merge 1:m pseudo_cluster using `main_data' , |
file | # | command |
---|---|---|
t2_mcloop.do: | 125 [+] | CR23_IK_CSS , |
t3_ols.do: | 84 [+] | CR23_IK_CSS , |
file | # | command |
---|---|---|
t2_mcloop.do: | 121 [+] | save `main_data' , |
t3_ols.do: | 64 [+] | qui save `main_data' , |
t4_mcloop.do: | 133 [+] | qui save `main_data' , |
file | # | command |
---|---|---|
CR23_IK_CSS.do: | 9 [+] | syntax , |
t2_mcloop.do: | 22 [+] | tempfile to_be_sampled main_data bsout pairs_bs_out |
t3_ar1.do: | 9 [+] | tempfile main_data |
t3_ols.do: | 15 [+] | tempfile main_data |
t4_mcloop.do: | 21 [+] | tempfile dummies to_be_sampled tobsample main_data bsout pairs_bs_out |
table3.do: | 28 [+] | tempfile main_data |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 86 [+] | local main_t = (`main_b' - 0) / `main_se' |
t2_mcloop.do: | 151 [+] | local main_t = (`b' - `beta_hypothesis') / `se_clu' |
t3_ols.do: | 124 [+] | local main_t = (`b_fe' - `beta_hypothesis') / `se_fe_clu' |
t4_mcloop.do: | 160 [+] | local main_t = (`b' - `beta_hypothesis') / `se_clu' |
: | 264 [+] | local main_t = (`b' - `beta_hypothesis') / `se_clu' |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 76 [+] | use `maindata' , |
: | 114 [+] | merge 1:m statefip using `maindata' , |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 55 [+] | qui save `maindata' |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 54 [+] | tempfile maindata |
file | # | command |
---|---|---|
t34_programs.do: | 47 [+] | cap prog drop make_deviations |
: | 48 [+] | prog def make_deviations |
file | # | command |
---|---|---|
doall.do: | 3 [+] | do makedata |
file | # | command |
---|---|---|
CR23_IK_CSS.do: | 17 [+] | mata: cr2cr3("`betavec'","pseudo_cluster","resid","`key_rhs'",`noconstant') |
t34_programs.do: | 22 [+] | mata: quickreg_1("`lhs'_deviation","`rhs'_deviation","`clusterid'") |
: | 38 [+] | mata: quickreg_1("`lhs'_deviation","`rhs'_deviation","`clusterid'") |
file | # | command |
---|---|---|
t34_programs.do: | 76 [+] | cap mata: mata drop quickreg_1() |
: | 77 [+] | cap mata: mata drop tester() |
table3.do: | 11 [+] | clear mata |
file | # | command |
---|---|---|
t34_programs.do: | 23 [+] | local matabeta = mybeta |
: | 39 [+] | local matabeta = mybeta |
file | # | command |
---|---|---|
t34_programs.do: | 24 [+] | local matase = myse |
: | 40 [+] | local matase = myse |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 114 [+] | merge 1:m statefip using `maindata' , |
t2_mcloop.do: | 81 [+] | merge 1:m statefip using "`sourcedata'" , |
: | 88 [+] | merge m:1 statefip subid using `to_be_sampled' , |
: | 176 [+] | merge 1:m pseudo_cluster using `main_data' , |
t3_ols.do: | 158 [+] | merge 1:m statefip using `main_data' , |
t4_mcloop.do: | 81 [+] | merge 1:m statefip using "`sourcedata'" , |
: | 87 [+] | merge m:1 statefip subid using `to_be_sampled' , |
: | 196 [+] | merge 1:m pseudo_cluster using `main_data' , |
file | # | command |
---|---|---|
cgmreg.ado: | 135 [+] | di "Note: +/- means the corresponding matrix is added/subtracted" |
: | 269 [+] | di " -> NOTE: Raw estimated variance matrix was non positive semi-definite." |
: | 354 [+] | ereturn matrix rawcovmat = `raw_running_sum' |
: | 360 [+] | di " -> NOTE: Raw estimated variance matrix was non-positive semi-definite." |
file | # | command |
---|---|---|
makedata.do: | 6 [+] | set matsize 2000 |
table1.do: | 101 [+] | set matsize 6000 |
table2.do: | 12 [+] | set matsize 10000 |
table3.do: | 13 [+] | set matsize 10000 |
table4.do: | 13 [+] | set matsize 10000 |
file | # | command |
---|---|---|
t2_mcloop.do: | 260 [+] | local toprank = r(max) |
: | 273 [+] | local p_`var'_high = max(`myp1',`myp2') |
table1.do: | 70 [+] | local clusize_max = r(max) |
file | # | command |
---|---|---|
t2_mcloop.do: | 257 [+] | local maxrank = r(N) |
t3_ols.do: | 225 [+] | local maxrank = r(N) |
t4_mcloop.do: | 284 [+] | local maxrank = r(N) |
file | # | command |
---|---|---|
t2_display.do: | 76 [+] | di "Number MC replications," _column(25) %6.0f `mc_reps' |
t2_mcloop.do: | 31 [+] | di "MC Reps = `mcreps', BS Reps = `bsreps', Number of states sampled = `numstates'" |
t4_display.do: | 57 [+] | di "Number MC replications," _column(35) %6.0f `mc_reps' |
t4_mcloop.do: | 17 [+] | di "Table 4 loop. MC Reps = `mcreps', BS Reps = `bsreps', Number of states sampled = `numstates'" |
file | # | command |
---|---|---|
t2_mcloop.do: | 50 [+] | qui forvalues mc = 1/`mcreps' { |
t4_mcloop.do: | 43 [+] | qui forvalues mc = 1/`mcreps' { |
file | # | command |
---|---|---|
t2_display.do: | 54 [+] | local mc_reps = r(N) |
t4_display.do: | 38 [+] | local mc_reps = r(N) |
file | # | command |
---|---|---|
table2.do: | 24 [+] | local mc_reps_bigG = 1000 |
table4.do: | 29 [+] | local mc_reps_bigG = 1000 |
file | # | command |
---|---|---|
table2.do: | 23 [+] | local mc_reps_smallG = 4000 |
table4.do: | 28 [+] | local mc_reps_smallG = 4000 |
file | # | command |
---|---|---|
table2.do: | 57 [+] | use `mcout_`ns'' , |
table4.do: | 64 [+] | use `mcout_`ns'' , |
file | # | command |
---|---|---|
table2.do: | 59 [+] | qui save "`mcout_`ns''" , |
table4.do: | 66 [+] | qui save "`mcout_`ns''" , |
file | # | command |
---|---|---|
table2.do: | 51 [+] | tempfile mcout_`ns' |
table4.do: | 58 [+] | tempfile mcout_`ns' |
file | # | command |
---|---|---|
t2_mcloop.do: | 29 [+] | qui postfile mcoutput numobs numstates K numbsreps `postlist' using "t2_post_G`numstates'_`mydate'.dta" , |
t4_mcloop.do: | 27 [+] | qui postfile mcoutput numobs numstates K numbsreps `postlist' using "t4_post_G`numstates'_`mydate'.dta" , |
file | # | command |
---|---|---|
t2_mcloop.do: | 28 [+] | cap postclose mcoutput |
: | 286 [+] | post mcoutput (`numobs') (`numstates') (`K') (`bsreps') (`b') (`se_rob') (`se_clu') (`se_CR2') (`se_CR3') (`dof_CR2_IK') (`dof_CSS') (`se_clu_bs') (`bs_misreps') (`p_pairs_bs') (`p_rad_res') (`p_rad_res_high') (`p_rad_res_low') (`p_rad_unres') (`p_webb_res') |
: | 293 [+] | postclose mcoutput |
t4_mcloop.do: | 26 [+] | cap postclose mcoutput |
: | 297 [+] | post mcoutput (`numobs') (`numstates') (`K') (`bsreps') (`b') (`se_def') (`se_clu') (`se_clu_bs') (`bs_misreps_b') (`bs_misreps_t') (`p_pairs_bs') (`p_rad_res') (`p_webb_res') |
: | 306 [+] | postclose mcoutput |
file | # | command |
---|---|---|
table2.do: | 54 [+] | do_the_monte_carlo , |
table4.do: | 61 [+] | do_the_monte_carlo , |
file | # | command |
---|---|---|
t2_mcloop.do: | 18 [+] | syntax , |
t4_mcloop.do: | 15 [+] | syntax , |
file | # | command |
---|---|---|
t2_display.do: | 75 [+] | di "Mean num. observations," _column(25) %6.0f `nobs_mean' |
file | # | command |
---|---|---|
makedata.do: | 135 [+] | collapse (mean) lnwage lnwage_sy (rawsum) wtsupp [pw=wtsupp] , |
t3_data_setup.do: | 36 [+] | egen `keylhs'_avg_s = mean(`keylhs') , |
: | 37 [+] | egen `keylhs'_avg_y = mean(`keylhs') , |
: | 39 [+] | egen policy_avg_s = mean(policy) , |
: | 40 [+] | egen policy_avg_y = mean(policy) , |
t4_mcloop.do: | 97 [+] | egen `lhs'_avg_s = mean(`lhs') , |
: | 98 [+] | egen `lhs'_avg_y = mean(`lhs') , |
: | 99 [+] | egen `keyrhs'_avg_s = mean(`keyrhs') , |
: | 100 [+] | egen `keyrhs'_avg_y = mean(`keyrhs') , |
: | 216 [+] | egen y_wild_rad_restricted_avg_s = mean(y_wild_rad_restricted) , |
: | 217 [+] | egen y_wild_rad_restricted_avg_y = mean(y_wild_rad_restricted) , |
: | 218 [+] | egen y_wild_webb_restricted_avg_s = mean(y_wild_webb_restricted) , |
: | 219 [+] | egen y_wild_webb_restricted_avg_y = mean(y_wild_webb_restricted) , |
t34_programs.do: | 58 [+] | egen yavg_ds_`var' = mean(ds_`var') , |
file | # | command |
---|---|---|
t2_display.do: | 37 [+] | local mean_p_`mthd' = r(mean) |
: | 40 [+] | local rej_rate_`mthd' = r(mean) |
: | 44 [+] | local IK_dof_mean = r(mean) |
: | 49 [+] | local CSS_dof_mean = r(mean) |
: | 52 [+] | local nobs_mean = r(mean) |
: | 55 [+] | local bs_reps = r(mean) |
: | 58 [+] | local mean_bsreps_miss = r(mean) |
: | 70 [+] | di "I-K dof (mean)," _column(25) %6.1f `IK_dof_mean' |
: | 73 [+] | di "CSS dof (mean)," _column(25) %6.1f `CSS_dof_mean' |
t2_mcloop.do: | 259 [+] | local meanrank = r(mean) |
t3_data_setup.do: | 30 [+] | local yrmean = r(mean) |
t3_ols.do: | 227 [+] | local meanrank = r(mean) |
t4_display.do: | 34 [+] | local rej_rate_`mthd' = r(mean) |
: | 39 [+] | local bs_reps = r(mean) |
: | 42 [+] | local bs_missed_b = r(mean) |
: | 45 [+] | local bs_missed_t = r(mean) |
t4_mcloop.do: | 91 [+] | local yrmean = r(mean) |
: | 286 [+] | local meanrank = r(mean) |
file | # | command |
---|---|---|
t2_display.do: | 58 [+] | local mean_bsreps_miss = r(mean) |
file | # | command |
---|---|---|
t2_display.do: | 37 [+] | local mean_p_`mthd' = r(mean) |
file | # | command |
---|---|---|
cgmreg.ado: | 430 [+] | summ `touse' , |
file | # | command |
---|---|---|
t2_mcloop.do: | 259 [+] | local meanrank = r(mean) |
t3_ols.do: | 227 [+] | local meanrank = r(mean) |
t4_mcloop.do: | 286 [+] | local meanrank = r(mean) |
file | # | command |
---|---|---|
cgmreg.ado: | 135 [+] | di "Note: +/- means the corresponding matrix is added/subtracted" |
file | # | command |
---|---|---|
cgmreg.ado: | 273 [+] | di " See Cameron, Gelbach & Miller, " |
: | 363 [+] | di " See Cameron, Gelbach & Miller, " |
file | # | command |
---|---|---|
cgmreg.ado: | 421 [+] | local varlist "req ex min(1)" |
t2_mcloop.do: | 261 [+] | local botrank = r(min) |
: | 263 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
: | 269 [+] | local myp1 = 2 * min(`pctile_top' , (1-`pctile_top')) |
: | 271 [+] | local myp2 = 2 * min(`pctile_bot' , (1-`pctile_bot')) |
: | 274 [+] | local p_`var'_low = min(`myp1',`myp2') |
t3_ols.do: | 229 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
t4_mcloop.do: | 288 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
table1.do: | 69 [+] | local clusize_min = r(min) |
file | # | command |
---|---|---|
cgmreg.ado: | 410 [+] | qui _robust `resid' `if' `in' `weight' , |
file | # | command |
---|---|---|
t2_display.do: | 79 [+] | di "Avg miss prs BS reps, " _column(25) %6.0f `mean_bsreps_miss' |
file | # | command |
---|---|---|
t4_display.do: | 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' |
file | # | command |
---|---|---|
cgmreg.ado: | 142 [+] | end commented for version 2.3.1 fix of missing cluster values issue |
file | # | command |
---|---|---|
cgmreg.ado: | 239 [+] | if mod(`included',2)==0 { |
t2_mcloop.do: | 53 [+] | if (mod(`mc',100) == 1) { |
t4_mcloop.do: | 52 [+] | if (mod(`mc',100) == 1) { |
file | # | command |
---|---|---|
cgmreg.ado: | 169 [+] | local model = e(model) |
: | 346 [+] | ereturn local model = "ols" |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 7 [+] | set more off |
t2_pvalues_check.do: | 7 [+] | set more off |
table1.do: | 10 [+] | set more off |
table2.do: | 7 [+] | set more off |
table3.do: | 4 [+] | set more off |
table4.do: | 5 [+] | set more off |
file | # | command |
---|---|---|
cgmreg.ado: | 134 [+] | qui regress `anything' if `touse' `weight' , |
file | # | command |
---|---|---|
cgmreg.ado: | 150 [+] | tempname N_clust N df_m F r2 mss rss r2_a ll ll_0 |
: | 158 [+] | scalar `mss' = e(mss) |
: | 324 [+] | ereturn scalar mss = `mss' |
file | # | command |
---|---|---|
t2_display.do: | 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 { |
: | 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 { |
t4_display.do: | 31 [+] | foreach mthd in def_Tnk clu_Tnk clu_Tg1 clu_Tg2 bsse_Tg1 pairs_bs rad_res webb_res { |
: | 52 [+] | foreach mthd in def_Tnk clu_Tnk clu_Tg1 clu_Tg2 bsse_Tg1 pairs_bs rad_res webb_res { |
file | # | command |
---|---|---|
cgmreg.ado: | 274 [+] | di " 'Robust Inference with Multi-Way Clustering'." |
: | 364 [+] | di " 'Robust Inference with Multi-Way Clustering'." |
file | # | command |
---|---|---|
cgmreg.ado: | 271 [+] | di " Because you used the -noeigenfix- option, -cgmreg- must end." |
file | # | command |
---|---|---|
set_directory_macros.do: | 3 [+] | local my_top_path = subinstr(c(pwd), "doug work\Colin\JHR cluster paper\work Summer 2014\empirical example code", "",.) |
file | # | command |
---|---|---|
set_directory_macros.do: | 5 [+] | global rawdat = "`my_top_path'data\CPS\July 2013 extract for cluster JHR" |
file | # | command |
---|---|---|
set_directory_macros.do: | 6 [+] | global madedat = "`my_top_path'madedata\Colin JHR paper" |
file | # | command |
---|---|---|
t1_boot_breakdown.do: | 102 [+] | gen my_uniform = uniform() |
: | 103 [+] | gen wild_rademacher = -1 + 2 * (my_uniform >= 0.5) |
: | 104 [+] | gen wild_webb = (-1) * sqrt(1.5) * (my_uniform > (0) & my_uniform <= (1/6)) + (-1) * sqrt(1) * (my_uniform > (1/6) & my_uniform <= (2/6)) + (-1) * sqrt(0.5) * (my_uniform > (2/6) & my_uniform <= (3/6)) + (+1) * sqrt(0.5) * (my_uniform > (3/6) & my_uniform <= (4/6)) + (+1) * sqrt(1) * (my_uniform > (4/6) & my_uniform <= (5/6)) + (+1) * sqrt(1.5) * (my_uniform > (5/6) & my_uniform <= (6/6)) |
t2_mcloop.do: | 165 [+] | gen my_uniform = uniform() |
: | 166 [+] | gen wild_rademacher = -1 + 2 * (my_uniform >= 0.5) |
: | 167 [+] | gen wild_webb = (-1) * sqrt(1.5) * (my_uniform > (0) & my_uniform <= (1/6)) + (-1) * sqrt(1) * (my_uniform > (1/6) & my_uniform <= (2/6)) + (-1) * sqrt(0.5) * (my_uniform > (2/6) & my_uniform <= (3/6)) + (+1) * sqrt(0.5) * (my_uniform > (3/6) & my_uniform <= (4/6)) + (+1) * sqrt(1) * (my_uniform > (4/6) & my_uniform <= (5/6)) + (+1) * sqrt(1.5) * (my_uniform > (5/6) & my_uniform <= (6/6)) |
t3_ols.do: | 147 [+] | gen my_uniform = uniform() |
: | 148 [+] | gen wild_rademacher = -1 + 2 * (my_uniform >= 0.5) |
: | 149 [+] | gen wild_webb = (-1) * sqrt(1.5) * (my_uniform > (0) & my_uniform <= (1/6)) + (-1) * sqrt(1) * (my_uniform > (1/6) & my_uniform <= (2/6)) + (-1) * sqrt(0.5) * (my_uniform > (2/6) & my_uniform <= (3/6)) + (+1) * sqrt(0.5) * (my_uniform > (3/6) & my_uniform <= (4/6)) + (+1) * sqrt(1) * (my_uniform > (4/6) & my_uniform <= (5/6)) + (+1) * sqrt(1.5) * (my_uniform > (5/6) & my_uniform <= (6/6)) |
t4_mcloop.do: | 185 [+] | gen my_uniform = uniform() |
: | 186 [+] | gen wild_rademacher = -1 + 2 * (my_uniform >= 0.5) |
: | 187 [+] | gen wild_webb = (-1) * sqrt(1.5) * (my_uniform > (0) & my_uniform <= (1/6)) + (-1) * sqrt(1) * (my_uniform > (1/6) & my_uniform <= (2/6)) + (-1) * sqrt(0.5) * (my_uniform > (2/6) & my_uniform <= (3/6)) + (+1) * sqrt(0.5) * (my_uniform > (3/6) & my_uniform <= (4/6)) + (+1) * sqrt(1) * (my_uniform > (4/6) & my_uniform <= (5/6)) + (+1) * sqrt(1.5) * (my_uniform > (5/6) & my_uniform <= (6/6)) |
file | # | command |
---|---|---|
t3_ols.do: | 104 [+] | qui bootstrap b=r(mybeta) se=r(myse) , reps(`bsreps') nodots cluster(statefip) idcluster(pseudo_cluster_2) seed(10101) saving(`pairs_bs_out' , double) : table3_np_boot , |
t4_mcloop.do: | 143 [+] | qui bootstrap b=r(mybeta) se=r(myse) , reps(`bsreps') nodots cluster(pseudo_cluster) idcluster(pseudo_cluster_2) seed(10101) saving(`pairs_bs_out' , double) : table4_np_boot , |
file | # | command |
---|---|---|
t34_programs.do: | 23 [+] | local matabeta = mybeta |
: | 25 [+] | return scalar mybeta = `matabeta' |
: | 39 [+] | local matabeta = mybeta |
: | 41 [+] | return scalar mybeta = `matabeta' |
file | # | command |
---|---|---|
t2_mcloop.do: | 24 [+] | local mydate = subinstr("$S_DATE"," ","_",.) |
t4_mcloop.do: | 22 [+] | local mydate = subinstr("$S_DATE"," ","_",.) |
file | # | command |
---|---|---|
t2_mcloop.do: | 263 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
t3_ols.do: | 229 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
t4_mcloop.do: | 288 [+] | local myp = 2 * min(`pctile' , (1-`pctile')) |
file | # | command |
---|---|---|
t2_mcloop.do: | 269 [+] | local myp1 = 2 * min(`pctile_top' , (1-`pctile_top')) |
file | # | command |
---|---|---|
t2_mcloop.do: | 271 [+] | local myp2 = 2 * min(`pctile_bot' , (1-`pctile_bot')) |
file | # | command |
---|---|---|
t3_ols.do: | 104 [+] | qui bootstrap b=r(mybeta) se=r(myse) , reps(`bsreps') nodots cluster(statefip) idcluster(pseudo_cluster_2) seed(10101) saving(`pairs_bs_out' , double) : table3_np_boot , |
t4_mcloop.do: | 143 [+] | qui bootstrap b=r(mybeta) se=r(myse) , reps(`bsreps') nodots cluster(pseudo_cluster) idcluster(pseudo_cluster_2) seed(10101) saving(`pairs_bs_out' , double) : table4_np_boot , |
file | # | command |
---|---|---|
t34_programs.do: | 24 [+] | local matase = myse |
: | 26 [+] | return scalar myse = `matase' |
: | 40 [+] | local matase = myse |
: | 42 [+] | return scalar myse = `matase' |
file | # | command |
---|---|---|
t4_mcloop.do: | 47 [+] | local myseed = 10101 + `mc' |
file | # | command |
---|---|---|
table2.do: | 34 [+] | qui use "`mysourcedata'" |
table4.do: | 38 [+] | qui use "`mysourcedata'" |
file | # | command |
---|---|---|
table2.do: | 37 [+] | qui save "`mysourcedata'" , |
table4.do: | 41 [+] | qui save "`mysourcedata'" , |
file | # | command |
---|---|---|
table2.do: | 30 [+] | local mysourcedata = "$madedat/CPS_2012_micro_medium" |
table4.do: | 34 [+] | local mysourcedata = "$madedat/CPS_panel" |