\documentclass{article}
\usepackage{booktabs}
\usepackage{dcolumn}
\begin{document}
\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Cross-sectional regression}
\begin{tabular}{l*{10}{D{.}{.}{-1}}}
\toprule
&\multicolumn{1}{c}{(1)} &\multicolumn{1}{c}{(2)} &\multicolumn{1}{c}{(3)} &\multicolumn{1}{c}{(4)} &\multicolumn{1}{c}{(5)} &\multicolumn{1}{c}{(6)} &\multicolumn{1}{c}{(7)} &\multicolumn{1}{c}{(8)} &\multicolumn{1}{c}{(9)} &\multicolumn{1}{c}{(10)} \\
\midrule
rec & -0.00887 & -0.0302 & -0.260 & -0.203 & -0.196 & -0.142 & -0.224 & 0.0137 & -0.231 & 0.0640 \\
& [0.0523] & [0.0803] & [0.157] & [0.120] & [0.136] & [0.126] & [0.117] & [0.122] & [0.460] & [0.224] \\
\addlinespace
Constant & -0.0912\sym{***}& -0.00939 & 0.124\sym{***}& 0.0729\sym{**} & 0.112\sym{***}& 0.131\sym{***}& 0.148\sym{***}& 0.121\sym{***}& 0.235\sym{**} & 0.149\sym{***}\\
& [0.0100] & [0.0148] & [0.0290] & [0.0231] & [0.0264] & [0.0249] & [0.0237] & [0.0252] & [0.0817] & [0.0406] \\
\midrule
Observations & 8088 & 7153 & 6154 & 5313 & 4591 & 3983 & 3553 & 3186 & 2818 & 2441 \\
Adjusted \(R^{2}\) & -0.000 & -0.000 & 0.000 & 0.000 & 0.000 & 0.000 & 0.001 & -0.000 & -0.000 & -0.000 \\
\bottomrule
\multicolumn{11}{l}{\footnotesize Standard errors in brackets}\\
\multicolumn{11}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\end{table}
\end{document}
This is the code I used when trying to use to create a table. When I run it and print out the PDF, the table is way too wide to fit on one page. I've been checking out similar questions to mine and tried what's suggested in those answers, but I haven't really gotten it to work..
Any suggestions?