{smcl}
{com}{sf}{ul off}{txt}
{com}. 
. **** REPLICATION OF TABLE B4 ****
. 
. clear all
{res}{txt}
{com}. set mem 2g
{txt}{bf:set memory} ignored.
{p 4 4 2}
Memory no longer
needs to be set in modern Statas;
memory adjustments are performed on the fly
automatically.
{p_end}

{com}. set more off
{txt}
{com}. 
. /*      
>         OUTLINE
>         1. DESCRIPTIVES TABLE
> */
. 
. *********************************
. ***** 1. DESCRIPTIVES TABLE *****
. *********************************
. 
. // Improt Microcensus data
. 
. use $data\EEREV-D-21-00004_Data_Micro1936.dta, clear
{txt}
{com}. 
. global controls "birthyr index male eligible index_eligible frenchnat germannat othernat catholic protestant other speakfrench hhold_head hhold_size"
{txt}
{com}. 
. // Full sample
. 
. estpost tabstat ///
>         $controls ///
>         , s(N mean sd min max p5 p50 p95) columns(statistics)

{txt}Summary statistics: count Mean SD Min Max p5 p50 p95
     for variables: birthyr index male eligible index_eligible frenchnat germannat othernat catholic protestant other speakfrench hhold_head hhold_size

{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:e(count)}{space 1}{space 1}{ralign 9:e(Mean)}{space 1}{space 1}{ralign 9:e(SD)}{space 1}{space 1}{ralign 9:e(Min)}{space 1}{space 1}{ralign 9:e(Max)}{space 1}{space 1}{ralign 9:e(p5)}{space 1}{space 1}{ralign 9:e(p50)}{space 1}{space 1}{ralign 9:e(p95)}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:birthyr}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15228}}}{space 1}{space 1}{ralign 9:{res:{sf:  1901.88}}}{space 1}{space 1}{ralign 9:{res:{sf: 22.05703}}}{space 1}{space 1}{ralign 9:{res:{sf:     1839}}}{space 1}{space 1}{ralign 9:{res:{sf:     1937}}}{space 1}{space 1}{ralign 9:{res:{sf:     1864}}}{space 1}{space 1}{ralign 9:{res:{sf:     1904}}}{space 1}{space 1}{ralign 9:{res:{sf:     1933}}}{space 1}
{space 0}{space 0}{ralign 12:index}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .0231749}}}{space 1}{space 1}{ralign 9:{res:{sf: .1504636}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{space 0}{space 0}{ralign 12:male}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .4984244}}}{space 1}{space 1}{ralign 9:{res:{sf: .5000139}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:eligible}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .1511949}}}{space 1}{space 1}{ralign 9:{res:{sf: .3582505}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:index_elig~e}{space 1}{c |}{space 1}{ralign 9:{res:{sf:     2303}}}{space 1}{space 1}{ralign 9:{res:{sf: .1498046}}}{space 1}{space 1}{ralign 9:{res:{sf: .3569573}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:frenchnat}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .9917279}}}{space 1}{space 1}{ralign 9:{res:{sf: .0905769}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:germannat}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .0026261}}}{space 1}{space 1}{ralign 9:{res:{sf: .0511794}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{space 0}{space 0}{ralign 12:othernat}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf:  .005646}}}{space 1}{space 1}{ralign 9:{res:{sf:   .07493}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{space 0}{space 0}{ralign 12:catholic}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .4143251}}}{space 1}{space 1}{ralign 9:{res:{sf: .4926213}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:protestant}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .5787815}}}{space 1}{space 1}{ralign 9:{res:{sf: .4937707}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:other}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .0068934}}}{space 1}{space 1}{ralign 9:{res:{sf: .0827425}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{space 0}{space 0}{ralign 12:speakfrench}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: .3759848}}}{space 1}{space 1}{ralign 9:{res:{sf:  .484392}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:hhold_head}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf:  .276917}}}{space 1}{space 1}{ralign 9:{res:{sf: .4474898}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}
{space 0}{space 0}{ralign 12:hhold_size}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    15232}}}{space 1}{space 1}{ralign 9:{res:{sf: 4.556526}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.984037}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:       14}}}{space 1}{space 1}{ralign 9:{res:{sf:        2}}}{space 1}{space 1}{ralign 9:{res:{sf:        4}}}{space 1}{space 1}{ralign 9:{res:{sf:        8}}}{space 1}

{com}.         
. matrix N=e(count)
{txt}
{com}. matrix m=e(Mean)
{txt}
{com}. matrix s=e(SD)
{txt}
{com}. matrix i=e(Min)
{txt}
{com}. matrix a=e(Max)
{txt}
{com}. matrix x=e(p5)
{txt}
{com}. matrix y=e(p50)
{txt}
{com}. matrix z=e(p95)
{txt}
{com}. 
. matrix obs = N'
{txt}
{com}. matrix mean=m'
{txt}
{com}. matrix sd=s'
{txt}
{com}. matrix min=i'
{txt}
{com}. matrix max=a'
{txt}
{com}. matrix p5=x'
{txt}
{com}. matrix p50=y'
{txt}
{com}. matrix p95=z'
{txt}
{com}. 
. matrix b1 = obs, mean, sd, min, p5, p50, p95, max
{txt}
{com}. matrix list b1
{res}
{txt}b1[14,8]
                  count       Mean         SD        Min         p5        p50        p95        Max
     birthyr {res}     15228  1901.8802  22.057032       1839       1864       1904       1933       1937
{txt}       index {res}     15232  .02317489  .15046364          0          0          0          0          1
{txt}        male {res}     15232  .49842437  .50001393          0          0          0          1          1
{txt}    eligible {res}     15232  .15119485  .35825046          0          0          0          1          1
{txt}index_elig~e {res}      2303   .1498046   .3569573          0          0          0          1          1
{txt}   frenchnat {res}     15232  .99172794  .09057688          0          1          1          1          1
{txt}   germannat {res}     15232  .00262605  .05117935          0          0          0          0          1
{txt}    othernat {res}     15232  .00564601  .07492996          0          0          0          0          1
{txt}    catholic {res}     15232  .41432511   .4926213          0          0          0          1          1
{txt}  protestant {res}     15232  .57878151  .49377068          0          0          1          1          1
{txt}       other {res}     15232  .00689338  .08274245          0          0          0          0          1
{txt} speakfrench {res}     15232  .37598477  .48439202          0          0          0          1          1
{txt}  hhold_head {res}     15232  .27691702  .44748981          0          0          0          1          1
{txt}  hhold_size {res}     15232  4.5565257  1.9840367          1          2          4          8         14
{reset}
{com}. 
. // Label variables
. 
. la var birthyr "Year-of-birth"
{txt}
{com}. la var male "[0.3em] Male"
{txt}
{com}. la var index_male"[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}of whom in the \textit{c -(}Index{c )-}{c )-}"
{txt}
{com}. la var eligible "[0.3em] Eligible for Wehrmacht"
{txt}
{com}. la var index_eligible"[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}of whom in the \textit{c -(}Index{c )-}{c )-}"
{txt}
{com}. la var frenchnat "[0.3em] Nationality: French"
{txt}
{com}. la var germannat "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}German{c )-}"
{txt}
{com}. la var othernat "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}"
{txt}
{com}. la var catholic "[0.3em] Religion: Roman catholic"
{txt}
{com}. la var protestant "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Protestant{c )-}"
{txt}
{com}. la var other "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}"
{txt}
{com}. la var speakfrench "[0.3em] French speaking"
{txt}
{com}. la var hhold_head "[0.3em] Household head"
{txt}
{com}. la var hhold_size "[0.3em] Household size"
{txt}
{com}. la var index "[0.3em] Appears in the \textit{c -(}Index{c )-}"
{txt}
{com}. 
. // Table
. 
. estout matrix(b1, fmt(%9.0fc 2 2 0 0 0 0 0)) using ///
>         "$results\\$program.tex", replace style(tex) type label ///
>         unstack collabels(none) ///
>         mlabels(, none) ///
>         msign(--) ///
>         title(1936 Population census: Data description) ///
>         prehead("\begin{c -(}table{c )-}[t!]" ///
>         "\begin{c -(}center{c )-}" ///
>         "\begin{c -(}threeparttable{c )-}" ///
>         "\begin{c -(}scriptsize{c )-}" ///
>         "\caption{c -(}@title{c )-}\label{c -(}$program{c )-}" ///
>         "\label{c -(}$table{c )-}"  /// 
>         "\begin{c -(}tabular*{c )-}{c -(}\columnwidth{c )-}{c -(}@{c -(}\extracolsep{c -(}\stretch{c -(}1{c )-}{c )-}{c )-}l*{c -(}8{c )-}{c -(}c{c )-}@{c -(}{c )-}{c )-}" ///
>         "\hline" "\hline" ///
>         "&\multicolumn{c -(}3{c )-}{c -(}c{c )-}{c -(}Statistics{c )-} &\multicolumn{c -(}5{c )-}{c -(}c{c )-}{c -(}Distribution{c )-}\\" ///
>         "\cmidrule(lr){c -(}2-4{c )-} \cmidrule(lr){c -(}5-9{c )-}" ///
>         "\textit{c -(}Variable{c )-}      &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Obs.{c )-} &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Mean{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Std.Dev.{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Min{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}5th pctile{c )-}   &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Median{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}95th pctile{c )-}   &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Max{c )-}\\") ///
>         posthead("\hline" ///
>         "\\") ///
>         prefoot("\\") ///
>         postfoot("\hline" "\hline" ///
>         "\end{c -(}tabular*{c )-}" ///
>         "\end{c -(}scriptsize{c )-}" ///
>         "\begin{c -(}tablenotes{c )-}[normal,flushleft]" ///
>         "\begin{c -(}scriptsize{c )-}" ///
>         "\item \emph{c -(}Notes{c )-}:" ///
>         "Data comes from the 1936 population census (\textit{c -(}Listes nominatives{c )-}). " ///
>         "Individual-level data. " ///
>         "All variables are binary with the exception of \textit{c -(}Year-of-birth{c )-} and \textit{c -(}Household size{c )-}. " ///
>         "\end{c -(}scriptsize{c )-}" ///
>         "\end{c -(}tablenotes{c )-}" ///
>         "\end{c -(}threeparttable{c )-}" ///
>         "\end{c -(}center{c )-}" ///
>         "\end{c -(}table{c )-}")
{res}
\begin{c -(}table{c )-}[t!]
\begin{c -(}center{c )-}
\begin{c -(}threeparttable{c )-}
\begin{c -(}scriptsize{c )-}
\caption{c -(}1936 Population census: Data description{c )-}\label{c -(}EEREV-D-21-00004_TableB4{c )-}
\label{c -(}{c )-}
\begin{c -(}tabular*{c )-}{c -(}\columnwidth{c )-}{c -(}@{c -(}\extracolsep{c -(}\stretch{c -(}1{c )-}{c )-}{c )-}l*{c -(}8{c )-}{c -(}c{c )-}@{c -(}{c )-}{c )-}
\hline
\hline
&\multicolumn{c -(}3{c )-}{c -(}c{c )-}{c -(}Statistics{c )-} &\multicolumn{c -(}5{c )-}{c -(}c{c )-}{c -(}Distribution{c )-}\\
\cmidrule(lr){c -(}2-4{c )-} \cmidrule(lr){c -(}5-9{c )-}
\textit{c -(}Variable{c )-}      &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Obs.{c )-} &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Mean{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Std.Dev.{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Min{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}5th pctile{c )-}   &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Median{c )-}  &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}95th pctile{c )-}   &\multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Max{c )-}\\
\hline
\\
Year-of-birth       &      15,228&     1901.88&       22.06&        1839&        1864&        1904&        1933&        1937\\
[0.3em] Appears in the \textit{c -(}Index{c )-}&      15,232&        0.02&        0.15&           0&           0&           0&           0&           1\\
[0.3em] Male        &      15,232&        0.50&        0.50&           0&           0&           0&           1&           1\\
[0.3em] Eligible for Wehrmacht&      15,232&        0.15&        0.36&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}of whom in the \textit{c -(}Index{c )-}{c )-}&       2,303&        0.15&        0.36&           0&           0&           0&           1&           1\\
[0.3em] Nationality: French&      15,232&        0.99&        0.09&           0&           1&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}German{c )-}&      15,232&        0.00&        0.05&           0&           0&           0&           0&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}&      15,232&        0.01&        0.07&           0&           0&           0&           0&           1\\
[0.3em] Religion: Roman catholic&      15,232&        0.41&        0.49&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Protestant{c )-}&      15,232&        0.58&        0.49&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}&      15,232&        0.01&        0.08&           0&           0&           0&           0&           1\\
[0.3em] French speaking&      15,232&        0.38&        0.48&           0&           0&           0&           1&           1\\
[0.3em] Household head&      15,232&        0.28&        0.45&           0&           0&           0&           1&           1\\
[0.3em] Household size&      15,232&        4.56&        1.98&           1&           2&           4&           8&          14\\
\\
\hline
\hline
\end{c -(}tabular*{c )-}
\end{c -(}scriptsize{c )-}
\begin{c -(}tablenotes{c )-}[normal,flushleft]
\begin{c -(}scriptsize{c )-}
\item \emph{c -(}Notes{c )-}:
Data comes from the 1936 population census (\textit{c -(}Listes nominatives{c )-}). 
Individual-level data. 
All variables are binary with the exception of \textit{c -(}Year-of-birth{c )-} and \textit{c -(}Household size{c )-}. 
\end{c -(}scriptsize{c )-}
\end{c -(}tablenotes{c )-}
\end{c -(}threeparttable{c )-}
\end{c -(}center{c )-}
\end{c -(}table{c )-}
{txt}(output written to {browse  `"D:\Dropbox\SVLACHOS\Research\Malgre_nous\Replication_files\Results\EEREV-D-21-00004_TableB4.tex"'})

{com}. 
. cap log close
{smcl}
{com}{sf}{ul off}