2

How do I center the second line of the title?

\documentclass[twocolumn]{article}

\usepackage{booktabs, makecell, tabularx}
\renewcommand\theadfont{\normalsize}
\renewcommand\theadgape{}
\setcellgapes{2pt}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{caption}
\usepackage{textcomp}
\usepackage{graphicx}
\raggedbottom
\usepackage{amsmath,geometry}
\usepackage{rotating}
\usepackage{booktabs, makecell}
\usepackage[referable]{threeparttablex}
\usepackage{siunitx}
\usepackage[skip=1ex]{caption}
\usepackage{upquote}
\usepackage{balance}
\usepackage[lite]{mtpro2} % Times Roman math font
\usepackage{float}
\usepackage{wasysym}
\usepackage{footmisc}
\title{\LARGE \bf ECON 425 Term Paper}

\begin{document}

%TABLE:
    \begin{table}[H]
\caption{Difference in Means}
\label{tab:table1}
    \raggedright
Male and Female CEOs, 2010-2017

    \medskip
    \setlength\tabcolsep{4pt}
    \small
    \makegapedcells
\begin{tabularx}{\columnwidth}{@{}Lll @{}}
    \toprule
\thead[l]{\\} 
            &  \thead[l]{Male} 
                                & \thead[l]{Female\\} \\
    \midrule
N   &  528        & 13150          \\
Mean salary (thousands)
            & 873.5 (14.244)   & 824.4 (3.7423)       \\
    \addlinespace
Standard deviation   & 327.3             & 429.1             \\
t Value & 2.60$^{*}$   & 3.33   $^{*}$    \\

    \bottomrule
\end{tabularx}

\smallskip
$^{*}$ Significant at the 1\% level.
    \end{table}

\end{document}

enter image description here

SamCarter, could you help me with this table as well? For consistency. I can't manage to get the first line of the title, where it says "table 2: etc" using the \centering command.

\documentclass[twocolumn]{article}

\usepackage{booktabs, makecell, tabularx}
\renewcommand\theadfont{\normalsize}
\renewcommand\theadgape{}
\setcellgapes{2pt}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{caption}
\usepackage{textcomp}
\usepackage{graphicx}
\raggedbottom
\usepackage{amsmath,geometry}
\usepackage{rotating}
\usepackage{booktabs, makecell}
\usepackage[referable]{threeparttablex}
\usepackage{siunitx}
\usepackage[skip=1ex]{caption}
\usepackage{upquote}
\usepackage{balance}
\usepackage[lite]{mtpro2} % Times Roman math font
\usepackage{float}
\usepackage{wasysym}
\usepackage{footmisc}
\title{\LARGE \bf ECON 425 Term Paper}

\begin{document}

%TABLE:
    \begin{table}[H]
     \centering
\caption{Estimates of pay-performance sensitivity}
\label{tab:table1}
OLS regressions of CEO salary and CEO total compensation on change in shareholder wealth. Standard errors in parentheses.

    \medskip
    \setlength\tabcolsep{4pt}
    \small
    \makegapedcells
\begin{tabularx}{\columnwidth}{@{}Lll @{}}
    \toprule
\thead[l]{Dependent\\ variable} 
            &  \thead[l]{CEO\\salary (\ref{eqn:first})} 
                                & \thead[l]{CEO total\\compensation (\ref{eqn:second})} \\
    \midrule
Intercept   &  434.319        & 6250.899          \\
Change in Shareholder Wealth (\%~Change)
            & -0.304 (.083)   & -2.638 (1.551)       \\
    \addlinespace
Adj R-squared   & 0.255             & 0.062             \\
F-statistic & 142.13$^{*}$   & 34.10$^{*}$    \\
Sample Size & 11537         & 11529          \\
    \bottomrule
\end{tabularx}

\smallskip
$^{*}$ Significant at the 1\% level.
    \end{table} 

\end{document}

enter image description here

texmex
  • 349
  • 2
  • What is SAS? 2. Code? Any effort you made until now? Which exercises should the template solve? What does the input data look like? If it's just about how to draw pretty tables in LaTeX, there are tons of examples on TeX.SX.
  • – Skillmon May 04 '18 at 18:15
  • @Skillmon i'll add what I have so far to the original post. – texmex May 04 '18 at 19:02
  • 1
    but this table content is very different from what you show in images? and this code was some days ago shown here from another user, see https://tex.stackexchange.com/questions/427244/need-help-resizing-floating-table/428420#428420 – Zarko May 04 '18 at 19:16
  • @Zarko probably me! I changed my name recently. And that's the point -- that's why im asking for suggestions for summary statistics templates instead of trying to adapt the regression table – texmex May 04 '18 at 19:19
  • 1
    @texmex, how we can know, what is in your table? show us, what you try so far, not a table already used in your previous question. we cant help you if we not know what should be in table. please, provide table content. as base for this you can use by you accepted answer. – Zarko May 04 '18 at 19:25
  • @Zarko , okay, I will put something together. Just didn't want to mess up – texmex May 04 '18 at 19:27