I have the following table, which is too wide for the page. Now I want to fit this table into this set page. Where shall I modify here? I tried to change {@{\extracolsep{5pt}}lcccc} into {@{\extracolsep{\fill}}ccccc} but it made no sense.
\documentclass[12pt, a4paper, leqno]{article}
\usepackage{a4wide}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{float, afterpage, rotating, graphicx}
\usepackage{epstopdf}
\usepackage{longtable, booktabs, tabularx}
\usepackage{fancyvrb, moreverb, relsize}
\usepackage{eurosym, calc}
\usepackage{amsmath, amssymb, amsfonts, amsthm, bm}
\usepackage{newtxtext,newtxmath}
\usepackage{caption}
\usepackage{mdwlist}
\usepackage{xfrac}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{subcaption}
\usepackage{minibox}
\usepackage{geometry}
\geometry{
left=3cm,
right=2cm,
top=2cm,
bottom=2cm,
}
\usepackage{setspace}
\onehalfspacing
\usepackage[unicode=true]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=black,
anchorcolor=black,
citecolor=black,
filecolor=black,
menucolor=black,
runcolor=black,
urlcolor=black
}
\widowpenalty=10000
\clubpenalty=10000
\setlength{\parskip}{2ex}
\setlength{\parindent}{0ex}
\setstretch{1.5}
\begin{document}
\begin{table}[!htbp] \centering
\caption{}
\label{}
\begin{tabular}{@{\extracolsep{5pt}}lcccc}
\[-1.8ex]\hline
\hline \[-1.8ex]
& \multicolumn{4}{c}{\textit{Dependent variable:}} \
\cline{2-5}
\[-1.8ex] & \multicolumn{4}{c}{democracy} \
\[-1.8ex] & (1)Unbalanced Fixed Effect & (2)Balanced Fixed Effect & (3)Unbalanced Fixed Effect & (4)Balanced Fixed Effect\
\[-1.8ex] & for Non-colonial Countries & for Non-colonial Countries & for Colonial Countries & for Colonial Countries\
\hline \[-1.8ex]
lag(d) & 0.123$^{*}$ & 0.456$^{}$ & 0.789$^{}$ & 0.567$^{}$ \
& (0.010) & (0.020) & (0.030) & (0.040) \
& & & & \
lag(y) & 0.012 & 0.123 & $-$0.234$^{}$ & $-$0.456$^{}$ \
& (0.012) & (0.089) & (0.045) & (0.078) \
& & & & \
\hline \[-1.8ex]
Observations & 901 & 574 & 1,297 & 826 \
R$^{2}$ & 0.692 & 0.407 & 0.641 & 0.402 \
Adjusted R$^{2}$ & 0.656 & 0.298 & 0.602 & 0.296 \
F Statistic & 150.795$^{}$ (df = 12; 807) & 41.478$^{}$ (df = 8; 484) & 173.803$^{}$ (df = 12; 1167) & 58.898$^{}$ (df = 8; 700) \
\hline
\hline \[-1.8ex]
\textit{Note:} & \multicolumn{4}{r}{$^{}$p$<$0.1; $^{}$p$<$0.05; $^{*}$p$<$0.01} \
\end{tabular}
\end{table}


@{\extracolsep{5pt}}to@{\extracolsep{\fill}}only makes sense when used with atabular*environment. – Mico Sep 05 '20 at 20:22