{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\yjia\Dropbox\dist\Log_Stata_LateFiling.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}26 Aug 2024, 13:12:00

{com}. use "C:\Users\yjia\Dropbox\dist\E_latefilng.dta", clear

. 
.  drop if mi(to)
{txt}(421 observations deleted)

{com}. 
.  winsor2 lev  lnat abret_m ret_m_sqrt log_emp dist2 logage btm ws_incomegr ws_unemprate ws_regrate ln_pop vio_rate pro_rate roa   

. 
.  gen log_dist = log(1+dist2_w)

. 
.   
. 
. reghdfe enf    pc2_w log_num abret_m_w ret_m_sqrt_w lnat_w logage_w  btm_w small loss log_emp_w  lev_w big_four roa_w log_dist ws_incomegr_w ws_unemprate_w ws_regrate_w ln_pop_w pro_rate_w vio_rate_w blue,a(state office year sic2) vce(cl court)
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    12,521
{txt}Absorbing 4 HDFE groups{col 51}F({res}  21{txt},{res}     88{txt}){col 67}= {res}     29.26
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.1038
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0927
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0628
{txt}{col 1}Number of clusters ({res}court{txt}) {col 30}= {res}        89{txt}{col 51}Root MSE{col 67}= {res}    0.2107

{txt}{ralign 80:(Std. err. adjusted for {res:89} clusters in {res:court})}
{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}           enf{col 16}{c |} Coefficient{col 28}  std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}pc2_w {c |}{col 16}{res}{space 2}-.0079913{col 28}{space 2} .0027366{col 39}{space 1}   -2.92{col 48}{space 3}0.004{col 56}{space 4}-.0134298{col 69}{space 3}-.0025528
{txt}{space 7}log_num {c |}{col 16}{res}{space 2} .0108206{col 28}{space 2} .0057707{col 39}{space 1}    1.88{col 48}{space 3}0.064{col 56}{space 4}-.0006474{col 69}{space 3} .0222886
{txt}{space 5}abret_m_w {c |}{col 16}{res}{space 2} -.018171{col 28}{space 2} .0056722{col 39}{space 1}   -3.20{col 48}{space 3}0.002{col 56}{space 4}-.0294433{col 69}{space 3}-.0068988
{txt}{space 2}ret_m_sqrt_w {c |}{col 16}{res}{space 2} .0184118{col 28}{space 2} .0050866{col 39}{space 1}    3.62{col 48}{space 3}0.000{col 56}{space 4} .0083032{col 69}{space 3} .0285204
{txt}{space 8}lnat_w {c |}{col 16}{res}{space 2} .0219954{col 28}{space 2} .0041594{col 39}{space 1}    5.29{col 48}{space 3}0.000{col 56}{space 4} .0137294{col 69}{space 3} .0302614
{txt}{space 6}logage_w {c |}{col 16}{res}{space 2}-.0063561{col 28}{space 2} .0048852{col 39}{space 1}   -1.30{col 48}{space 3}0.197{col 56}{space 4}-.0160645{col 69}{space 3} .0033522
{txt}{space 9}btm_w {c |}{col 16}{res}{space 2}-.0037116{col 28}{space 2} .0044136{col 39}{space 1}   -0.84{col 48}{space 3}0.403{col 56}{space 4}-.0124827{col 69}{space 3} .0050596
{txt}{space 9}small {c |}{col 16}{res}{space 2}-.0593448{col 28}{space 2} .0164196{col 39}{space 1}   -3.61{col 48}{space 3}0.001{col 56}{space 4}-.0919753{col 69}{space 3}-.0267142
{txt}{space 10}loss {c |}{col 16}{res}{space 2}-.0068362{col 28}{space 2} .0058506{col 39}{space 1}   -1.17{col 48}{space 3}0.246{col 56}{space 4}-.0184631{col 69}{space 3} .0047907
{txt}{space 5}log_emp_w {c |}{col 16}{res}{space 2} .0158617{col 28}{space 2} .0107025{col 39}{space 1}    1.48{col 48}{space 3}0.142{col 56}{space 4}-.0054071{col 69}{space 3} .0371306
{txt}{space 9}lev_w {c |}{col 16}{res}{space 2}-.0092914{col 28}{space 2} .0066137{col 39}{space 1}   -1.40{col 48}{space 3}0.164{col 56}{space 4}-.0224348{col 69}{space 3}  .003852
{txt}{space 6}big_four {c |}{col 16}{res}{space 2} -.008214{col 28}{space 2} .0065633{col 39}{space 1}   -1.25{col 48}{space 3}0.214{col 56}{space 4}-.0212572{col 69}{space 3} .0048293
{txt}{space 9}roa_w {c |}{col 16}{res}{space 2}-.0117412{col 28}{space 2} .0057072{col 39}{space 1}   -2.06{col 48}{space 3}0.043{col 56}{space 4} -.023083{col 69}{space 3}-.0003994
{txt}{space 6}log_dist {c |}{col 16}{res}{space 2}-.0012402{col 28}{space 2} .0044706{col 39}{space 1}   -0.28{col 48}{space 3}0.782{col 56}{space 4}-.0101245{col 69}{space 3} .0076441
{txt}{space 1}ws_incomegr_w {c |}{col 16}{res}{space 2} .0000752{col 28}{space 2}  .001509{col 39}{space 1}    0.05{col 48}{space 3}0.960{col 56}{space 4}-.0029236{col 69}{space 3}  .003074
{txt}ws_unemprate_w {c |}{col 16}{res}{space 2} .0012158{col 28}{space 2} .0039108{col 39}{space 1}    0.31{col 48}{space 3}0.757{col 56}{space 4}-.0065561{col 69}{space 3} .0089876
{txt}{space 2}ws_regrate_w {c |}{col 16}{res}{space 2}-.1136537{col 28}{space 2} .0900847{col 39}{space 1}   -1.26{col 48}{space 3}0.210{col 56}{space 4}-.2926781{col 69}{space 3} .0653707
{txt}{space 6}ln_pop_w {c |}{col 16}{res}{space 2} .0176277{col 28}{space 2} .0085962{col 39}{space 1}    2.05{col 48}{space 3}0.043{col 56}{space 4} .0005445{col 69}{space 3} .0347109
{txt}{space 4}pro_rate_w {c |}{col 16}{res}{space 2}-.0189742{col 28}{space 2} .0149154{col 39}{space 1}   -1.27{col 48}{space 3}0.207{col 56}{space 4}-.0486153{col 69}{space 3} .0106669
{txt}{space 4}vio_rate_w {c |}{col 16}{res}{space 2} .2037448{col 28}{space 2} .0880299{col 39}{space 1}    2.31{col 48}{space 3}0.023{col 56}{space 4} .0288039{col 69}{space 3} .3786857
{txt}{space 10}blue {c |}{col 16}{res}{space 2}-.0079678{col 28}{space 2} .0202977{col 39}{space 1}   -0.39{col 48}{space 3}0.696{col 56}{space 4}-.0483053{col 69}{space 3} .0323696
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-.2436495{col 28}{space 2} .1425527{col 39}{space 1}   -1.71{col 48}{space 3}0.091{col 56}{space 4}-.5269431{col 69}{space 3} .0396441
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       state{col 14}{c |}{space 1}       50{col 27}{space 1}        0{col 39}{result}{space 1}       50{col 53}{text} {col 54}{c |}
{res}{col 1}{text}      office{col 14}{c |}{space 1}       11{col 27}{space 1}       10{col 39}{result}{space 1}        1{col 53}{text} {col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       16{col 27}{space 1}        1{col 39}{result}{space 1}       15{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}        sic2{col 14}{c |}{space 1}       69{col 27}{space 1}        1{col 39}{result}{space 1}       68{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
{res}
{com}. 
. outreg2 using table4_pur.xls, alpha(0.01, 0.05, 0.1) symbol(***, **, *) dec(3) tstat adj replace
{txt}{browse `"table4_pur.xls"'}
{browse `"C:\Users\yjia\Documents"' :dir}{com} : {txt}{stata `"seeout using "table4_pur.txt""':seeout}

{com}. 
. reghdfe enf    pc2_w log_num abret_m_w ret_m_sqrt_w lnat_w logage_w  btm_w small loss log_emp_w  lev_w big_four roa_w log_dist ws_incomegr_w ws_unemprate_w ws_regrate_w ln_pop_w pro_rate_w vio_rate_w blue,a(state office#year sic2) vce(cl court)
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 9 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    12,521
{txt}Absorbing 3 HDFE groups{col 51}F({res}  21{txt},{res}     88{txt}){col 67}= {res}     26.12
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.1218
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0999
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0618
{txt}{col 1}Number of clusters ({res}court{txt}) {col 30}= {res}        89{txt}{col 51}Root MSE{col 67}= {res}    0.2099

{txt}{ralign 80:(Std. err. adjusted for {res:89} clusters in {res:court})}
{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}           enf{col 16}{c |} Coefficient{col 28}  std. err.{col 40}      t{col 48}   P>|t|{col 56}     [95% con{col 69}f. interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}pc2_w {c |}{col 16}{res}{space 2}-.0068589{col 28}{space 2} .0032601{col 39}{space 1}   -2.10{col 48}{space 3}0.038{col 56}{space 4}-.0133376{col 69}{space 3}-.0003802
{txt}{space 7}log_num {c |}{col 16}{res}{space 2} .0106471{col 28}{space 2} .0056758{col 39}{space 1}    1.88{col 48}{space 3}0.064{col 56}{space 4}-.0006324{col 69}{space 3} .0219266
{txt}{space 5}abret_m_w {c |}{col 16}{res}{space 2}   -.0191{col 28}{space 2} .0057715{col 39}{space 1}   -3.31{col 48}{space 3}0.001{col 56}{space 4}-.0305696{col 69}{space 3}-.0076303
{txt}{space 2}ret_m_sqrt_w {c |}{col 16}{res}{space 2} .0188636{col 28}{space 2} .0050187{col 39}{space 1}    3.76{col 48}{space 3}0.000{col 56}{space 4}   .00889{col 69}{space 3} .0288372
{txt}{space 8}lnat_w {c |}{col 16}{res}{space 2} .0226515{col 28}{space 2} .0041576{col 39}{space 1}    5.45{col 48}{space 3}0.000{col 56}{space 4} .0143892{col 69}{space 3} .0309137
{txt}{space 6}logage_w {c |}{col 16}{res}{space 2}-.0066565{col 28}{space 2} .0049926{col 39}{space 1}   -1.33{col 48}{space 3}0.186{col 56}{space 4}-.0165783{col 69}{space 3} .0032653
{txt}{space 9}btm_w {c |}{col 16}{res}{space 2}-.0037637{col 28}{space 2} .0044438{col 39}{space 1}   -0.85{col 48}{space 3}0.399{col 56}{space 4}-.0125949{col 69}{space 3} .0050675
{txt}{space 9}small {c |}{col 16}{res}{space 2}-.0566224{col 28}{space 2} .0161602{col 39}{space 1}   -3.50{col 48}{space 3}0.001{col 56}{space 4}-.0887374{col 69}{space 3}-.0245074
{txt}{space 10}loss {c |}{col 16}{res}{space 2}-.0059438{col 28}{space 2} .0056392{col 39}{space 1}   -1.05{col 48}{space 3}0.295{col 56}{space 4}-.0171506{col 69}{space 3}  .005263
{txt}{space 5}log_emp_w {c |}{col 16}{res}{space 2} .0152386{col 28}{space 2} .0106532{col 39}{space 1}    1.43{col 48}{space 3}0.156{col 56}{space 4}-.0059325{col 69}{space 3} .0364096
{txt}{space 9}lev_w {c |}{col 16}{res}{space 2}-.0079821{col 28}{space 2} .0066562{col 39}{space 1}   -1.20{col 48}{space 3}0.234{col 56}{space 4}-.0212099{col 69}{space 3} .0052456
{txt}{space 6}big_four {c |}{col 16}{res}{space 2}-.0070348{col 28}{space 2} .0068552{col 39}{space 1}   -1.03{col 48}{space 3}0.308{col 56}{space 4} -.020658{col 69}{space 3} .0065884
{txt}{space 9}roa_w {c |}{col 16}{res}{space 2}-.0114355{col 28}{space 2} .0063584{col 39}{space 1}   -1.80{col 48}{space 3}0.076{col 56}{space 4}-.0240714{col 69}{space 3} .0012005
{txt}{space 6}log_dist {c |}{col 16}{res}{space 2}-.0021639{col 28}{space 2} .0043364{col 39}{space 1}   -0.50{col 48}{space 3}0.619{col 56}{space 4}-.0107815{col 69}{space 3} .0064538
{txt}{space 1}ws_incomegr_w {c |}{col 16}{res}{space 2}-.0005949{col 28}{space 2} .0021862{col 39}{space 1}   -0.27{col 48}{space 3}0.786{col 56}{space 4}-.0049396{col 69}{space 3} .0037497
{txt}ws_unemprate_w {c |}{col 16}{res}{space 2} .0021973{col 28}{space 2} .0050254{col 39}{space 1}    0.44{col 48}{space 3}0.663{col 56}{space 4}-.0077897{col 69}{space 3} .0121843
{txt}{space 2}ws_regrate_w {c |}{col 16}{res}{space 2}-.1493686{col 28}{space 2} .1022031{col 39}{space 1}   -1.46{col 48}{space 3}0.147{col 56}{space 4}-.3524757{col 69}{space 3} .0537385
{txt}{space 6}ln_pop_w {c |}{col 16}{res}{space 2} .0171014{col 28}{space 2} .0093986{col 39}{space 1}    1.82{col 48}{space 3}0.072{col 56}{space 4}-.0015762{col 69}{space 3} .0357791
{txt}{space 4}pro_rate_w {c |}{col 16}{res}{space 2}-.0104841{col 28}{space 2} .0257479{col 39}{space 1}   -0.41{col 48}{space 3}0.685{col 56}{space 4}-.0616526{col 69}{space 3} .0406845
{txt}{space 4}vio_rate_w {c |}{col 16}{res}{space 2} .1782401{col 28}{space 2} .0949584{col 39}{space 1}    1.88{col 48}{space 3}0.064{col 56}{space 4}-.0104697{col 69}{space 3} .3669499
{txt}{space 10}blue {c |}{col 16}{res}{space 2} .0098114{col 28}{space 2} .0212275{col 39}{space 1}    0.46{col 48}{space 3}0.645{col 56}{space 4}-.0323738{col 69}{space 3} .0519966
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} -.249003{col 28}{space 2} .1563451{col 39}{space 1}   -1.59{col 48}{space 3}0.115{col 56}{space 4} -.559706{col 69}{space 3} .0617001
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         state{col 16}{c |}{space 1}       50{col 29}{space 1}        0{col 41}{result}{space 1}       50{col 55}{text} {col 56}{c |}
{res}{col 1}{text}   office#year{col 16}{c |}{space 1}      176{col 29}{space 1}       10{col 41}{result}{space 1}      166{col 55}{text} {col 56}{c |}
{res}{col 1}{text}          sic2{col 16}{c |}{space 1}       69{col 29}{space 1}        1{col 41}{result}{space 1}       68{col 55}{text}?{col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
{res}
{com}. 
. outreg2 using table4_pur.xls, alpha(0.01, 0.05, 0.1) symbol(***, **, *) dec(3) tstat adj append
{txt}{browse `"table4_pur.xls"'}
{browse `"C:\Users\yjia\Documents"' :dir}{com} : {txt}{stata `"seeout using "table4_pur.txt""':seeout}

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\yjia\Dropbox\dist\Log_Stata_LateFiling.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}26 Aug 2024, 13:12:24
{txt}{.-}
{smcl}
{txt}{sf}{ul off}