I have this table from Stata:
EDIT: After taking Mico's suggestion I was able to create the table with the following codes:
\begin{table}[htbp]
\caption{Summary Statistics} \label{tab:1}
\centering
\setlength\tabcolsep{4.5pt} % default value: 6pt
\begin{tabular}{@{} l l|
d{2.7} d{1.7} d{2.7} d{2.7} |
>{$}r<{$} @{${}={}$} d{4.0} @{}} %
\multicolumn{2}{@{}l|}{Variable\Bstrut} & \mc{Mean} & \mc{Std.~Dev.} & \mc{Min} & \multicolumn{1}{c|}{Max} & \multicolumn{2}{r@{}}{Observ.}\\
\hline
\textit{lwage}\Tstrut & overall & 1.649147 & .5326094 & -3.579079 & 4.05186 & N & 4360\\
& between & & .3907468 & .3333435 & 3.174173 & n & 545\\
& within & & .3622636 & -2.467201 & 3.204687 & T & 8\\[1ex] % extra vertical whitespace
\textit{educ} & overall & 11.76697 & 1.746181 & 3 & 16 & N & 4360\\
& between & & 1.747585 & 3 & 16 & n & 545\\
& within & & 0 & 11.76697 & 11.76697 & T & 8\\[1ex] % extra vertical whitespace
\textit{black} & overall & .1155963 & .3197769 & 0 & 1 & N & 4360\\
& between & & .320034 & 0 & 1 & n & 545\\
& within & & 0 & .1155963 & .1155963 & T & 8\\[1ex] % extra vertical whitespace
\textit{hisp} & overall & .1559633 & .3628622 & 0 & 1 & N & 4360\\
& between & & .3631539 & 0 & 1 & n & 545\\
& within & & 0 & .1559633 & .1559633 & T & 8\\[1ex] % extra vertical whitespace
\textit{exper} & overall & 6.514679 & 2.825873 & 0 & 18 & N & 4360\\
& between & & 1.654918 & 3.5 & 14.5 & n & 545\\
& within & & 2.291551 & 3.014679 & 10.01468 & T & 8\\[1ex] % extra vertical whitespace
$exper^{2}$ & overall & 50.42477 & 40.78199 & 0 & 324 & N & 4360\\
& between & & 26.35134 & 17.5 & 215.5 & n & 545\\
& within & & 31.1431 & -44.07523 & 158.9248 & T & 8\\[1ex] % extra vertical whitespace
\textit{married} & overall & .4389908 & .4963208 & 0 & 1 & N & 4360\\
& between & & .3766116 & 0 & 1 & n & 545\\
& within & & .3236137 & -.4360092 & 1.313991 & T & 8\\[1ex] % extra vertical whitespace
\textit{union} & overall & .2440367 & .4295639 & 0 & 1 & N & 4360\\
& between & & .3294467 & 0 & 1 & n & 545\\
& within & & .2759787 & -.6309633 & 1.119037 & T & 8\\[1ex] % extra vertical whitespace
\end{tabular}
\end{table}
However, the problem now is that they're not aligned properly like the original table. How do I do that?