I am trying to center columns using
\newcolumntype{Y}{>{\centering\arraybackslash}X}
. However, it does not work in the following example.
\documentclass[11pt]{article}
\usepackage{setspace}
\usepackage{amssymb,colortbl}
\usepackage[capposition=top]{floatrow}
\usepackage[tablename=TABLE,labelsep=newline,aboveskip=0pt,bf, justification = centering]{caption}
\usepackage{clipboard}
\usepackage{booktabs}
\usepackage[svgnames]{xcolor}
\usepackage[capposition=top]{floatrow}
\usepackage{ltablex}
\usepackage{threeparttablex}
\usepackage{fancyvrb}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcommand{\gmc}[2]{\multicolumn{#1}{@{}#2@{}}}
\newcommand*{\tabnospace}{\item \noindent \hspace{-0.05in}}
\begin{document}
\begin{ThreePartTable}
\footnotesize
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\renewcommand\TPTminimum{\textwidth}
\begin{TableNotes}[flushleft]
\small
\tabnospace
Notes: The table reports results from regression models of future forecast errors of real estate price changes on the corresponding-region accounting profitability change. Forecast errors are actual realizations of real estate price changes minus the corresponding-period forecasts from Econoday and Zillow. Table 1 provides more details on the variables and the sample. \hrule
\end{TableNotes}
\singlespacing
\captionof{table}{\textbf{How is Regional Accounting Information Processed by Real Estate Forecasters?}}
\begin{tabularx}{\textwidth}{@{\extracolsep{\fill}}XYYY@{\extracolsep{\fill}}}
\toprule
\endfirsthead\endhead
\bottomrule\insertTableNotes
\endlastfoot
\gmc{4}{l}{Panel A. Econoday forecasts} \\\hline
& \gmc{3}{c}{Future Forecast error of regional real estate price change} \\\hline
& Estimate & Standard Error & t-statistic \\\hline
\rowcolor{gray!25}$\Delta Prof_{region}$ & 0.100& 0.046& 2.165\\
Intercept & 0.000& 0.001& 0.147 \\
Adjusted $R^2$ & 0.154 \\\\\hline
\gmc{4}{l}{Panel A. Zillow forecasts} \\\hline
&Estimate& Standard Error& t-statistic\\
\rowcolor{gray!25} $\Delta Prof_{region}$ & 0.068& 0.029& 2.389 \\
Intercept& 0.000& 0.000& 0.347\\\\
Adjusted $R^2$ & 0.145 \\
\end{tabularx}
\end{ThreePartTable}
\end{document}
@{\extracolsep{\fill}}
doesn't make much sense except when used in atabular*
environment. – Mico Jun 19 '16 at 7:10