I want to rescale this table because I want it to fit in one page but for some reason it won't and it gives me errors. I tried using \scalebox{0.5} that I used for another table but it doesn't work.
\begin{table}[h]
\centering
\caption{Panel A}
\begin{tabular}{l*{2}{c}}
\hline\hline
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}\\
\hline
Highest schooling attained& -0.00577 & -0.00835 \
& (0.0109) & (0.0108) \
Husband's highest schooling attained (reported by wife)& 0.0151 & 0.0167 \
& (0.0145) & (0.0145) \
Ideal number of children& 0.00757 & 0.00803 \
& (0.0292) & (0.0292) \
Age & 0.00192 & 0.00132 \
& (0.0110) & (0.0110) \
Husband's age (reported by wife)& 0.00393 & 0.00467 \
& (0.0120) & (0.0120) \
Husband's ideal number of children (reported by wife)& -0.0225 & -0.0220 \
& (0.0203) & (0.0203) \
Has ever used a modern contraceptive method& -0.0181 & 0.00141 \
& (0.102) & (0.101) \
Wife has monthly income& -0.0735 & -0.0748 \
& (0.129) & (0.129) \
Wife knows when she is most fertile& 0.0917 & 0.0965 \
& (0.0817) & (0.0816) \
Wife wants to become pregnant in following 2 years& 0.00457 & -0.00293 \
& (0.0664) & (0.0657) \
Age wife married& 0.00758 & 0.00787 \
& (0.00948) & (0.00947) \
Catholic & -0.00748 & -0.00580 \
& (0.0658) & (0.0657) \
Comparison of happiness with other women in region\(1=very unhappy, 5=very happy)& 0.00915 & 0.0119 \
& (0.0353) & (0.0352) \
Comparison of health with other women in region\(1=very poor, 5=excellent)& 0.00229 & -0.00611 \
& (0.0406) & (0.0403) \
Number of years respondent lived in Lusaka& 0.000733 & 0.000546 \
& (0.00256) & (0.00255) \
Couple has electricity& 0.00826 & 0.00748 \
& (0.0574) & (0.0569) \
Formally married& 0.0388 & 0.0233 \
& (0.0930) & (0.0916) \
Number of days in past 7 days couple has sex& 0.0194 & 0.0174 \
& (0.0256) & (0.0256) \
Number of days in past month couple has sex& -0.00292 & -0.00287 \
& (0.00786) & (0.00785) \
Number of children husband has with other women& -0.00612 & -0.000674 \
& (0.0676) & (0.0674) \
Frequency at which couple has talked about contraception in last year& 0.0137 & 0.0112 \
& (0.0267) & (0.0266) \
Couple has ever disagreed on number of children& 0.0559 & 0.0559 \
& (0.0824) & (0.0824) \
Couple has ever disagreed on contraception use& -0.0699 & -0.0682 \
& (0.0909) & (0.0908) \
Have used contraceptive method without husband's knowledge& 0.00117 & -0.00202 \
& (0.0875) & (0.0874) \
Husband drinks at least 2 to 3 times a week& -0.00806 & -0.00576 \
& (0.0553) & (0.0552) \
f29 & -0.0802 & -0.0819 \
& (0.0580) & (0.0579) \
Wife ever pressured to have sex& 0.0549 & 0.0560 \
& (0.0623) & (0.0621) \
Husband does budgeting& 0.0193 & 0.0141 \
& (0.0818) & (0.0817) \
Husband decides major purchases& 0.0404 & 0.0421 \
& (0.0632) & (0.0631) \
cons & 0.286 & 0.303 \
& (0.321) & (0.321) \
\hline
(N) & 423 & 426 \
\hline\hline
\multicolumn{2}{l}{\footnotesize Standard errors in parentheses}\
\multicolumn{2}{l}{\footnotesize * (p<0.05), ** (p<0.01), *** (p<0.001)}\
\end{tabular}
\end{table}
This is what I used for the other
\begin{table}[htbp]
\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Summary Statistics for Final Sample \label{tab:tab2}} \scalebox{0.5}{\begin{tabular}{l c*{6}{c}} \hline
&\multicolumn{3}{c}{Individual Treatment} &\multicolumn{2}{c}\\\cmidrule(lr){2-4}
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}\\
\toprule \multicolumn{6}{l}{\textbf{Panel B}} \\ \midrule
Using any method at baseline& -0.0613 & -0.0444 \
& (0.0820) & (0.0810) \
Number of living children& 0.0143 & 0.0133 \
& (0.0276) & (0.0276) \
Using injectable at baseline& -0.151 & -0.153 \
& (0.384) & (0.384) \
\hline\hline
\multicolumn{11}{l}{\footnotesize Standard errors in parentheses}\
\multicolumn{11}{l}{\footnotesize \sym{} (p<0.05), \sym{} (p<0.01), \sym{**} (p<0.001)}\
\end{tabular}}
\end{table}



\footnotesizecommand. – Imran Nov 29 '21 at 12:12