{smcl}
{com}{sf}{ul off}{txt}
{com}. 
. **** REPLICATION OF TABLE B7 ****
. 
. 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 *****
. *********************************
. 
. // Import survey data
. 
. use $data\EEREV-D-21-00004_Data_Survey.dta, clear
{txt}
{com}. 
. keep if dep_inc==1
{txt}(10,210 observations deleted)

{com}. 
. // Controls
. 
. replace male=. if sex==.
{txt}(0 real changes made)

{com}. 
. // Macros for sample
. 
. global outcomes "confiance_ecole confiance_justi confiance_polic confiance_armee confiance_parti vote_ERW_ever vote_P2002R1_ERW_post"
{txt}
{com}. global controls_i "birthyr i.parents i.religion i.annee_fep#i.wave_enc"
{txt}
{com}. 
. // Labels
. 
. la var alsace                           "Alsace"
{txt}
{com}. la var born_1908_1913           "[0.3em] Born 1908-1913" 
{txt}
{com}. la var p_g1_1908_1913           "[0.3em] Born 1908-13 (Father)" 
{txt}
{com}. la var p_g2_1908_1913           "[0.3em] Born 1908-13 (G.-father)" 
{txt}
{com}. la var perc_i_full                      "\\ Conscription proxy (\%)"
{txt}
{com}. 
. la var annee_fep                "\\ Survey year"
{txt}
{com}. la var birthyr                  "[0.3em] Year-of-birth"
{txt}
{com}. la var alsace                   "[0.3em] Alsace"
{txt}
{com}. la var male                     "[0.3em] Male"
{txt}
{com}. la var p_g1_1908_1913   "[0.3em] Born 1908-1913: Father"
{txt}
{com}. la var p_g2_1908_1913   "[0.3em] Born 1908-1913: Grandfather"
{txt}
{com}. 
. tab wave_enc, g(wave_)

       {txt}Wave {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
2002 Wave 1 {c |}{res}        178       37.39       37.39
{txt}2002 Wave 2 {c |}{res}        109       22.90       60.29
{txt}2002 Wave 3 {c |}{res}         23        4.83       65.13
{txt}2007 Wave 1 {c |}{res}        166       34.87      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        476      100.00
{txt}
{com}. rename wave_enc wave
{res}{txt}
{com}. 
. la var wave_1           "\\ Survey: 2002 Wave 1"
{txt}
{com}. la var wave_2           "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2002 Wave 2{c )-}"
{txt}
{com}. la var wave_3           "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2002 Wave 3{c )-}"
{txt}
{com}. la var wave_4           "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2007 Wave 1{c )-}"
{txt}
{com}. 
. // Get stats
. 
. estpost tabstat ///
>         wave_* birthyr male alsace ///
>         , s(N mean sd min max p5 p50 p95) columns(statistics)

{txt}Summary statistics: count Mean SD Min Max p5 p50 p95
     for variables: wave_1 wave_2 wave_3 wave_4 birthyr male alsace

{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:wave_1}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .3739496}}}{space 1}{space 1}{ralign 9:{res:{sf: .4843595}}}{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:wave_2}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .2289916}}}{space 1}{space 1}{ralign 9:{res:{sf: .4206259}}}{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:wave_3}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .0483193}}}{space 1}{space 1}{ralign 9:{res:{sf: .2146657}}}{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:wave_4}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .3487395}}}{space 1}{space 1}{ralign 9:{res:{sf: .4770727}}}{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:birthyr}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: 1957.655}}}{space 1}{space 1}{ralign 9:{res:{sf: 17.21624}}}{space 1}{space 1}{ralign 9:{res:{sf:     1918}}}{space 1}{space 1}{ralign 9:{res:{sf:     1988}}}{space 1}{space 1}{ralign 9:{res:{sf:     1928}}}{space 1}{space 1}{ralign 9:{res:{sf:     1958}}}{space 1}{space 1}{ralign 9:{res:{sf:     1983}}}{space 1}
{space 0}{space 0}{ralign 12:male}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .4558824}}}{space 1}{space 1}{ralign 9:{res:{sf: .4985738}}}{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:alsace}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .7079832}}}{space 1}{space 1}{ralign 9:{res:{sf: .4551684}}}{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}

{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 b = obs, mean, sd, min, p5, p50, p95, max
{txt}
{com}. matrix list b
{res}
{txt}b[7,8]
             count       Mean         SD        Min         p5        p50        p95        Max
 wave_1 {res}       476  .37394958  .48435953          0          0          0          1          1
{txt} wave_2 {res}       476   .2289916  .42062589          0          0          0          1          1
{txt} wave_3 {res}       476  .04831933  .21466574          0          0          0          0          1
{txt} wave_4 {res}       476   .3487395  .47707275          0          0          0          1          1
{txt}birthyr {res}       476  1957.6555  17.216241       1918       1928       1958       1983       1988
{txt}   male {res}       476  .45588235  .49857382          0          0          0          1          1
{txt} alsace {res}       476  .70798319  .45516836          0          0          1          1          1
{reset}
{com}. 
. // Export table
. 
. estout matrix(b, 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(French Electoral Panel 2002-2007: 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 )-}"  /// 
>         "\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("")
{res}
\begin{c -(}table{c )-}[t!]
\begin{c -(}center{c )-}
\begin{c -(}threeparttable{c )-}
\begin{c -(}scriptsize{c )-}
\caption{c -(}French Electoral Panel 2002-2007: Data description{c )-}
\label{c -(}EEREV-D-21-00004_TableB7{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

\\ Survey: 2002 Wave 1&         476&        0.37&        0.48&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2002 Wave 2{c )-}&         476&        0.23&        0.42&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2002 Wave 3{c )-}&         476&        0.05&        0.21&           0&           0&           0&           0&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}2007 Wave 1{c )-}&         476&        0.35&        0.48&           0&           0&           0&           1&           1\\
[0.3em] Year-of-birth&         476&     1957.66&       17.22&        1918&        1928&        1958&        1983&        1988\\
[0.3em] Male        &         476&        0.46&        0.50&           0&           0&           0&           1&           1\\
[0.3em] Alsace      &         476&        0.71&        0.46&           0&           0&           1&           1&           1\\


{txt}(output written to {browse  `"D:\Dropbox\SVLACHOS\Research\Malgre_nous\Replication_files\Results\EEREV-D-21-00004_TableB7.tex"'})

{com}. 
. estpost tabstat ///
>         perc_i_full ///
>         , s(N mean sd min max p5 p50 p95) columns(statistics)

{txt}Summary statistics: count Mean SD Min Max p5 p50 p95
     for variables: perc_i_full

{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:perc_i_full}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: 6.767514}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.876351}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.152691}}}{space 1}{space 1}{ralign 9:{res:{sf: 13.74784}}}{space 1}{space 1}{ralign 9:{res:{sf: 3.733869}}}{space 1}{space 1}{ralign 9:{res:{sf:  6.92808}}}{space 1}{space 1}{ralign 9:{res:{sf: 10.50381}}}{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 b = obs, mean, sd, min, p5, p50, p95, max
{txt}
{com}. matrix list b
{res}
{txt}b[1,8]
                 count       Mean         SD        Min         p5        p50        p95        Max
perc_i_full {res}       476  6.7675138  1.8763511  1.1526905  3.7338686  6.9280801  10.503807   13.74784
{reset}
{com}. 
. // Export table
. 
. estout matrix(b, fmt(%9.0fc 2 2 2 2 2 2 2)) using ///
>         "$results\\$program.tex", append style(tex) type label ///
>         unstack collabels(none) ///
>         mlabels(, none) ///
>         msign(--) //
{res}
\\ Conscription proxy (\%)&         476&        6.77&        1.88&        1.15&        3.73&        6.93&       10.50&       13.75\\
{txt}(output written to {browse  `"D:\Dropbox\SVLACHOS\Research\Malgre_nous\Replication_files\Results\EEREV-D-21-00004_TableB7.tex"'})

{com}. 
. estpost tabstat ///
>         p_g1_1908_1913 p_g2_1908_1913 ///
>         , s(N mean sd min max p5 p50 p95) columns(statistics)

{txt}Summary statistics: count Mean SD Min Max p5 p50 p95
     for variables: p_g1_1908_1913 p_g2_1908_1913

{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:p_g1_19~1913}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .0973213}}}{space 1}{space 1}{ralign 9:{res:{sf: .1297276}}}{space 1}{space 1}{ralign 9:{res:{sf: .0000204}}}{space 1}{space 1}{ralign 9:{res:{sf: .4149886}}}{space 1}{space 1}{ralign 9:{res:{sf: .0000418}}}{space 1}{space 1}{ralign 9:{res:{sf:  .020781}}}{space 1}{space 1}{ralign 9:{res:{sf: .3773069}}}{space 1}
{space 0}{space 0}{ralign 12:p_g2_19~1913}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      476}}}{space 1}{space 1}{ralign 9:{res:{sf: .1863852}}}{space 1}{space 1}{ralign 9:{res:{sf: .1756605}}}{space 1}{space 1}{ralign 9:{res:{sf:  .000198}}}{space 1}{space 1}{ralign 9:{res:{sf: .4694457}}}{space 1}{space 1}{ralign 9:{res:{sf: .0005948}}}{space 1}{space 1}{ralign 9:{res:{sf: .1355132}}}{space 1}{space 1}{ralign 9:{res:{sf: .4642647}}}{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 b = obs, mean, sd, min, p5, p50, p95, max
{txt}
{com}. matrix list b
{res}
{txt}b[2,8]
                  count       Mean         SD        Min         p5        p50        p95        Max
p_g1_19~1913 {res}       476  .09732133   .1297276  .00002042   .0000418    .020781  .37730686  .41498858
{txt}p_g2_19~1913 {res}       476  .18638518  .17566052  .00019797  .00059481  .13551325  .46426469  .46944571
{reset}
{com}. 
. // Export table
. 
. estout matrix(b, fmt(%9.0fc 2 2 0 0 2 2 2)) using ///
>         "$results\\$program.tex", append style(tex) type label ///
>         unstack collabels(none) ///
>         mlabels(, none) ///
>         msign(--) //
{res}
[0.3em] Born 1908-1913: Father&         476&        0.10&        0.13&           0&           0&        0.02&        0.38&        0.41\\
[0.3em] Born 1908-1913: Grandfather&         476&        0.19&        0.18&           0&           0&        0.14&        0.46&        0.47\\
{txt}(output written to {browse  `"D:\Dropbox\SVLACHOS\Research\Malgre_nous\Replication_files\Results\EEREV-D-21-00004_TableB7.tex"'})

{com}. 
. // Labels
. 
. la var confiance_ecole  "\\ Trust in: Schooling system"
{txt}
{com}. la var confiance_justi  "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Judicial system{c )-}"
{txt}
{com}. la var confiance_polic  "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Police{c )-}"
{txt}
{com}. la var confiance_armee  "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Army{c )-}"
{txt}
{com}. la var confiance_parti  "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Political parties{c )-}"
{txt}
{com}. la var vote_ERW_ever    "\\ Ever voted for the radical right"
{txt}
{com}. la var vote_P2002R1_ERW_post    "[0.3em] Voted for the radical right in 2002R1"
{txt}
{com}. 
. foreach var in parents religion{c -(}
{txt}  2{com}.         tab `var', g(`var'_)
{txt}  3{com}. {c )-}

          {txt}Parents nationality {c |}      Freq.     Percent        Cum.
{hline 30}{c +}{hline 35}
   Oui, un (de vos) parent(s) {c |}{res}        351       73.89       73.89
{txt}        Oui, vos deux parents {c |}{res}         39        8.21       82.11
{txt}Oui, au moins un grand-parent {c |}{res}         38        8.00       90.11
{txt}                          Non {c |}{res}         47        9.89      100.00
{txt}{hline 30}{c +}{hline 35}
                        Total {c |}{res}        475      100.00

      {txt}Religion {c |}      Freq.     Percent        Cum.
{hline 15}{c +}{hline 35}
    Catholique {c |}{res}        335       70.68       70.68
{txt}   Protestante {c |}{res}         57       12.03       82.70
{txt}     Musulmane {c |}{res}         34        7.17       89.87
{txt}Autre religion {c |}{res}          7        1.48       91.35
{txt} Sans religion {c |}{res}         41        8.65      100.00
{txt}{hline 15}{c +}{hline 35}
         Total {c |}{res}        474      100.00
{txt}
{com}. 
. la var parents_1                        "\\ Parents nationality: One foreign"
{txt}
{com}. la var parents_2                        "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Both parents foreign{c )-}"
{txt}
{com}. la var parents_3                        "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}One grandparent foreign{c )-}"
{txt}
{com}. la var parents_4                        "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}None foreign{c )-}"
{txt}
{com}. la var religion_1                       "[0.3em] Religion: Roman Catholic" 
{txt}
{com}. la var religion_2                       "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Protestant{c )-}" 
{txt}
{com}. la var religion_3                       "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Muslim{c )-}" 
{txt}
{com}. la var religion_4                       "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}" 
{txt}
{com}. la var religion_5                       "[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}No religion{c )-}" 
{txt}
{com}. 
. // Macros
. 
. global outcomes "confiance_ecole confiance_justi confiance_polic confiance_armee confiance_parti vote_ERW_ever vote_P2002R1_ERW_post"
{txt}
{com}. global controls_i "parents_1 parents_2 parents_3 parents_4 religion_1 religion_2 religion_3 religion_4 religion_5"
{txt}
{com}. 
. // Get stats
. 
. estpost tabstat ///
>         $outcomes $controls_i ///
>         , s(N mean sd min max p5 p50 p95) columns(statistics)

{txt}Summary statistics: count Mean SD Min Max p5 p50 p95
     for variables: confiance_ecole confiance_justi confiance_polic confiance_armee confiance_parti vote_ERW_ever vote_P2002R1_ERW_post parents_1 parents_2 parents_3 parents_4 religion_1 religion_2 religion_3 religion_4 religion_5

{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:confiance~le}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      195}}}{space 1}{space 1}{ralign 9:{res:{sf: .7692308}}}{space 1}{space 1}{ralign 9:{res:{sf: .4224095}}}{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:confianc~sti}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      197}}}{space 1}{space 1}{ralign 9:{res:{sf: .5279188}}}{space 1}{space 1}{ralign 9:{res:{sf: .5004918}}}{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:confiance_~c}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      198}}}{space 1}{space 1}{ralign 9:{res:{sf: .7626263}}}{space 1}{space 1}{ralign 9:{res:{sf: .4265517}}}{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:confiance~ee}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      194}}}{space 1}{space 1}{ralign 9:{res:{sf:  .871134}}}{space 1}{space 1}{ralign 9:{res:{sf: .3359184}}}{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:confianc~rti}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      197}}}{space 1}{space 1}{ralign 9:{res:{sf:  .248731}}}{space 1}{space 1}{ralign 9:{res:{sf: .4333789}}}{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:vote_ERW_e~r}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      381}}}{space 1}{space 1}{ralign 9:{res:{sf: .1233596}}}{space 1}{space 1}{ralign 9:{res:{sf: .3292819}}}{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:vote_P2002~t}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      336}}}{space 1}{space 1}{ralign 9:{res:{sf: .1369048}}}{space 1}{space 1}{ralign 9:{res:{sf: .3442595}}}{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:parents_1}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      475}}}{space 1}{space 1}{ralign 9:{res:{sf: .7389474}}}{space 1}{space 1}{ralign 9:{res:{sf: .4396716}}}{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:parents_2}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      475}}}{space 1}{space 1}{ralign 9:{res:{sf: .0821053}}}{space 1}{space 1}{ralign 9:{res:{sf: .2748145}}}{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:parents_3}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      475}}}{space 1}{space 1}{ralign 9:{res:{sf:      .08}}}{space 1}{space 1}{ralign 9:{res:{sf: .2715792}}}{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:parents_4}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      475}}}{space 1}{space 1}{ralign 9:{res:{sf: .0989474}}}{space 1}{space 1}{ralign 9:{res:{sf: .2989061}}}{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:religion_1}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      474}}}{space 1}{space 1}{ralign 9:{res:{sf: .7067511}}}{space 1}{space 1}{ralign 9:{res:{sf: .4557326}}}{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:religion_2}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      474}}}{space 1}{space 1}{ralign 9:{res:{sf: .1202532}}}{space 1}{space 1}{ralign 9:{res:{sf:  .325601}}}{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:religion_3}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      474}}}{space 1}{space 1}{ralign 9:{res:{sf:   .07173}}}{space 1}{space 1}{ralign 9:{res:{sf: .2583129}}}{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:religion_4}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      474}}}{space 1}{space 1}{ralign 9:{res:{sf: .0147679}}}{space 1}{space 1}{ralign 9:{res:{sf: .1207502}}}{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:religion_5}{space 1}{c |}{space 1}{ralign 9:{res:{sf:      474}}}{space 1}{space 1}{ralign 9:{res:{sf: .0864979}}}{space 1}{space 1}{ralign 9:{res:{sf: .2813948}}}{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}

{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 b = obs, mean, sd, min, p5, p50, p95, max
{txt}
{com}. matrix list b
{res}
{txt}b[16,8]
                  count       Mean         SD        Min         p5        p50        p95        Max
confiance~le {res}       195  .76923077  .42240954          0          0          1          1          1
{txt}confianc~sti {res}       197  .52791878  .50049183          0          0          1          1          1
{txt}confiance_~c {res}       198  .76262626  .42655172          0          0          1          1          1
{txt}confiance~ee {res}       194  .87113402  .33591843          0          0          1          1          1
{txt}confianc~rti {res}       197  .24873096  .43337889          0          0          0          1          1
{txt}vote_ERW_e~r {res}       381  .12335958  .32928191          0          0          0          1          1
{txt}vote_P2002~t {res}       336  .13690476  .34425945          0          0          0          1          1
{txt}   parents_1 {res}       475  .73894737  .43967161          0          0          1          1          1
{txt}   parents_2 {res}       475  .08210526  .27481445          0          0          0          1          1
{txt}   parents_3 {res}       475        .08  .27157922          0          0          0          1          1
{txt}   parents_4 {res}       475  .09894737  .29890614          0          0          0          1          1
{txt}  religion_1 {res}       474  .70675105  .45573256          0          0          1          1          1
{txt}  religion_2 {res}       474  .12025316  .32560099          0          0          0          1          1
{txt}  religion_3 {res}       474  .07172996  .25831288          0          0          0          1          1
{txt}  religion_4 {res}       474  .01476793  .12075016          0          0          0          0          1
{txt}  religion_5 {res}       474  .08649789  .28139484          0          0          0          1          1
{reset}
{com}. 
. // Export table
. 
. estout matrix(b, fmt(%9.0fc 2 2 0 0 0 0 0)) using ///
>         "$results\\$program.tex", append style(tex) type label ///
>         unstack collabels(none) ///
>         mlabels(, none) ///
>         msign(--) ///
>         prehead("") ///
>         posthead("") ///
>         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 )-}:" ///       
>         "Covariates used in Table \ref{c -(}EEREV-D-21-00004_Table10{c )-}. " ///
>         "The unit of observation is an individual. " ///
>         "See Online Appendix \ref{c -(}OA_BIRTH_D{c )-} for the construction of the probabilities. " ///
>         "See Online Appendix \ref{c -(}OA_FEP{c )-} for the construction of the other variables. " ///
>         "\end{c -(}scriptsize{c )-}" ///
>         "\end{c -(}tablenotes{c )-}" ///
>         "\end{c -(}threeparttable{c )-}" ///
>         "\end{c -(}center{c )-}" ///
>         "\end{c -(}table{c )-}")
{res}


\\ Trust in: Schooling system&         195&        0.77&        0.42&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Judicial system{c )-}&         197&        0.53&        0.50&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Police{c )-}&         198&        0.76&        0.43&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Army{c )-}&         194&        0.87&        0.34&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Political parties{c )-}&         197&        0.25&        0.43&           0&           0&           0&           1&           1\\
\\ Ever voted for the radical right&         381&        0.12&        0.33&           0&           0&           0&           1&           1\\
[0.3em] Voted for the radical right in 2002R1&         336&        0.14&        0.34&           0&           0&           0&           1&           1\\
\\ Parents nationality: One foreign&         475&        0.74&        0.44&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Both parents foreign{c )-}&         475&        0.08&        0.27&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}One grandparent foreign{c )-}&         475&        0.08&        0.27&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}None foreign{c )-}&         475&        0.10&        0.30&           0&           0&           0&           1&           1\\
[0.3em] Religion: Roman Catholic&         474&        0.71&        0.46&           0&           0&           1&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Protestant{c )-}&         474&        0.12&        0.33&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Muslim{c )-}&         474&        0.07&        0.26&           0&           0&           0&           1&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}Other{c )-}&         474&        0.01&        0.12&           0&           0&           0&           0&           1\\
[0.3em] \multicolumn{c -(}1{c )-}{c -(}l{c )-}{c -(}No religion{c )-}&         474&        0.09&        0.28&           0&           0&           0&           1&           1\\
\\
\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 )-}:
Covariates used in Table \ref{c -(}EEREV-D-21-00004_Table10{c )-}. 
The unit of observation is an individual. 
See Online Appendix \ref{c -(}OA_BIRTH_D{c )-} for the construction of the probabilities. 
See Online Appendix \ref{c -(}OA_FEP{c )-} for the construction of the other variables. 
\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_TableB7.tex"'})

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