Anonymous 13970
I would love to recreate this table on latex but I don't know how. Does someone know how to? 
Top Answer
samcarter
You could use the `tabularray` package. Here a short example to get you started:
```
\documentclass{article}
\usepackage{caption}
\usepackage{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\begin{table}[htbp]
\caption{Impacts of the demand and the supply side of corruption.}
\begin{tblr}{
colspec={@{}X[2]XXXX@{}}
}
\toprule
Dependent variables: & \SetCell[c=2]{} Tax evasion && \SetCell[c=2]{} Bribing for government contracts &\\
\cmidrule[r]{2-3}\cmidrule[l]{4-5}
& (1) & (2) & (3) & (4)\\
\midrule
Demand side of corruption & 7.494*** & 15.93** & 3.964*** & 4.038*\\
& (1.231) & (7.489) & (0.452) & (2.146)\\
\bottomrule
\end{tblr}
\medskip
Notes: All regressions include firms' individual characteristics described above, country, sector, and year fixed effects. Robust standard errors clustered at the country level in parentheses.
\end{table}
\end{document}
```

In case you'd like to align all the numbers with respect to their decimal markers, you could use the siunitx package:
```
\documentclass{article}
\usepackage{caption}
\usepackage{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\UseTblrLibrary{siunitx}
\begin{document}
\begin{table}[htbp]
\caption{Impacts of the demand and the supply side of corruption.}
\begin{tblr}{
colspec={
@{}
X*{4}{
Q[si={
table-format=-2.5,
table-alignment=left,
table-space-text-post=***,
table-align-text-post=false,
table-space-text-pre=(,
table-align-text-pre=false,
input-open-uncertainty=,
input-close-uncertainty=,
}]
}@{}
},
row{1,2} = {guard}
}
\toprule
Dependent variables: & \SetCell[c=2]{} Tax evasion && \SetCell[c=2]{} Bribing for gov.\ contracts &\\
\cmidrule[r]{2-3}\cmidrule[l]{4-5}
& (1) & (2) & (3) & (4)\\
\midrule
Demand side of corruption & 7.494*** & 15.93** & 3.964*** & 4.038*\\
& (1.231) & (7.489) & (0.452) & (2.146)\\
\bottomrule
\end{tblr}
\medskip
Notes: All regressions include firms' individual characteristics described above, country, sector, and year fixed effects. Robust standard errors clustered at the country level in parentheses.
\end{table}
\end{document}
```
