I found this post: https://latex.org/forum/viewtopic.php?t=34299, which detailed combining a section header and a sideways table on the same page. It has somewhat worked for me, but there are two issues I cannot figure out.
First, there is a gap between the 'edge' of my table (top when viewed vertically) and the section header. Second is that my table seems to ignore the right margin, and as such extends so far 'down' that it cuts off the bottom of my caption.
I've attached my latex code here:
Ideally, I would like the table to run right up to the results header and abide by the margins set forth on the page. Additionally, the toprule, midrule, and bottomrule all stop partway through the table for some reason.
Best,
Ronan
\section{Results} \vfill \begin{center} \begin{sideways} \begin{minipage}{\linewidth} \captionof{table}{Regression Table} \begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}@{}llllllll@{}} \toprule & Complete & \multicolumn{2}{c}{25th Percentile} & \multicolumn{2}{c}{50th Percentile} & \multicolumn{2}{c}{75th Percentile} \\ \cmidrule(lr){3-4} \cmidrule(lr){5-6} \cmidrule(lr){7-8} & Dataset & Under 25th & Over 25th & Under 50th & Over 50th & Under 75th & Over 75th \\ \midrule VET & .5257*** & 1.011* & .4971*** & .3728 & .5856*** & .2243 & .5976*** \\ & (0.07) & (0.50) & (0.08) & (0.27) & (0.10) & (0.17) & (0.14) \\ POP & 1.5e-07*** & 2.1e-07*** & 5.0e-07*** & 1.7e-07*** & 5.2e-07*** & 1.5e-07*** & 5.1e-07*** \\ & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\ WHITE & .000377** & -5.6e-06 & .00099*** & .000159 & .001065*** & .00009 & .00178*** \\ & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\ UNIT & -8.2e-07** & -1.1e-06*** & -2.6e-06*** & -9.2e-07*** & -2.7e-06*** & -8.1e-07*** & -2.6e-06*** \\ & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\ INC & 4.4e-06*** & 5.7e-06*** & 3.4e-06*** & 5.5e-06*** & 2.2e-06*** & 5.2e-06*** & 1.4e-06*** \\ & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\ COST & .000732*** & .000568*** & .000903*** & .000622*** & .000985*** & .000672*** & .001028*** \\ & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\ Constant & 10.69*** & 10.85*** & 10.5*** & 10.79*** & 10.46*** & 10.75*** & 10.41*** \\ & (0.02) & (0.04) & (0.02) & (0.03) & (0.03) & (0.02) & (0.04) \\ \midrule R-Squared & .82 & 0.853 & 0.789 & 0.843 & 0.783 & 0.833 & 0.785 \\ Observations & 8210 & 2053 & 6157 & 4105 & 4105 & 6158 & 2052 \\ \bottomrule \end{tabular*} \captionof*{table}{Standard errors in parentheses * p < 0.05, ** p < 0.01, *** p < 0.001} \label{fullRegTable} \end{minipage} \end{sideways} \end{center}