-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile_tables.tex
61 lines (54 loc) · 1.95 KB
/
compile_tables.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
\documentclass{article}
% NICE TABLES
\usepackage{tabularx, multirow, booktabs}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\usepackage[unicode=true,pdfusetitle,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]
{hyperref}
\hypersetup{
allcolors = blue}
\begin{document}
\begin{table}
\caption{Table of simulated data, no stars}
\scriptsize
\begin{tabularx}{\linewidth}{lYYYYYY}
\toprule\toprule \\
& \multicolumn{3}{c}{OLS} & \multicolumn{3}{c}{IV} \\
\cmidrule(lr){2-4} \cmidrule(lr){5-7}\\
\input{tabs/example_nostar}
[0.5em]
Some controls & & X & X & & X & X \\
Other controls & & & X & & & X \\
\bottomrule \\
\end{tabularx}
{\sc Note.} Something something
\end{table}
\begin{table}
\caption{Table of simulated data, with stars}
\scriptsize
\begin{tabularx}{\linewidth}{lYYYYYY}
\toprule\toprule \\
& \multicolumn{3}{c}{OLS} & \multicolumn{3}{c}{IV} \\
\cmidrule(lr){2-4} \cmidrule(lr){5-7}\\
\input{tabs/example_withstar}
[0.5em]
Some controls & & X & X & & X & X \\
Other controls & & & X & & & X \\
\bottomrule \\
\end{tabularx}
{\sc Note.} $^{**}$ $p<0.01$; $^{*}$ $p<0.05$; $^{+}$ $p<0.1$;
\end{table}
\begin{table}
\caption{Example from \href{https://swopec.hhs.se/lunewp/abs/lunewp2016_007.htm}{Druedahl and Martinello (2016)}}
\scriptsize
\begin{tabularx}{\linewidth}{lYYYYY}
\toprule\toprule \\
& Test of pre-trends & \multicolumn{4}{c}{Dynamic effects around parental death} \\
\cmidrule(lr){2-2} \cmidrule(lr){3-6} \\
Years from shock& & $-2$ &$1$ &$5$ &$9$ \\
\midrule\\
\input{tabs/druedahl_martinello_nostar}
\bottomrule \\
\end{tabularx}
{\sc Note.} The first column reports the F-statistic of a test for equality to zero of the estimated effect of inheritance before parental death (p-value in parentheses). The remaining columns report the dynamic effect of inheritance at selected years from parental death.
\end{table}
\end{document}