[Tex/LaTex] Format spacing for correlation table (any statistical table)

horizontal alignmentspacingtables

I'm attempting to format a correlation table for publication but can't get the spacing right when I include significance stars. I'd like to have minimal space between columns. The space between significance stars columns and significant correlations should be nil.

The final goal is to fit the table on a 8.5 x 11 page in portrait page orientation with significance stars directly touching the right side of the correlations. I also tried wrapping the first column to go onto the next line with:

\begin{tabular}{p{3cm}llrp{.3cm}rp{.3cm}rp{.3cm}r}

I then had to use \noindent to get each row to not indent. Even after that when the row did wrap to the next line it was not indented after the numbers I have for each variable.

I'm sure the fix is easy but I'm not terrifically familiar with LaTeX yet.

I have googled this for a while and am frustrated. Thank you in advance for you assistance.

    \documentclass[leavefloats]{apa6e}
    \usepackage[american]{babel}
    \usepackage{csquotes}
    \abstract{This is an example of of an abstract in APA.  }
    \begin{document}
    \title{A Template for APA Papers}
    \shorttitle{APA: A Template}
    \author{John}
    \authornote{\dots}
    \date{\today} % or \date{24Jan11} for example
    \maketitle
    \section{CORRELATION}

    \begin{table}[ht]
    \small
    \caption{Correlations, means and standard deviations Of model variables}
    \label{tb:cor:cha}
    \begin{center}
    \begin{tabular}{lllrp{2.9cm}rp{2.9cm}rp{2.9cm}r}
      \hline
           \multicolumn{7}{l}{Charter Schools}  \\
       \hline
     measure & mean & \makebox [.8cm][c]{sd} & \makebox [.8cm][c]{1} && \makebox [.8cm][c]{2} && \makebox [.8cm][c]{3} && \makebox [.8cm][c]{4} \\
      \hline
1. Percent Passing Reading &   0.469 &   0.199 &  &  &  & &&& \\
2. Percent Minority &   0.888 &   0.214 & -0.385 &   &  & &&&   \\
3. Percent Free \& Reduced Lunch &   0.722 &   0.203 & -0.181  &  &  0.326  &  &  &&  \\
4. Enrollment & 679.880 & 192.984 & -0.063    && -0.168    & & 0.183    &&  \\
5. Percent Teachers $<$ 3yrs Experience &   0.274 &   0.150 & -0.223   & &  0.252    & & -0.316    & & -0.283    \\
      \hline
         \multicolumn{7}{l}{Districts}  \\
       \hline
1. Percent Passing Reading  &     0.634 &     0.1393 &  &  &  & &&& \\
2. Percent Minority &     0.163 &     0.2374 & -0.470&*** &  &  &&&  \\
3. Percent Free \& Reduced Lunch &     0.337 &     0.2106 & -0.732&*** &  0.512&*** &&  & \\
4. Enrollment & 11866.793 & 18847.8328 & -0.388&*** &  0.715&*** &  0.498&*** &  \\
5. Percent Teachers $<$ 3yrs Experience &     0.056 &     0.0347 & -0.374&*** &  0.064 &   &  0.310&*** &  0.114    \\
       \hline\\[-2.5ex]
         \multicolumn{7}{l}{*Note *p$<$.05, **p$<$.01, ***p$<$.001}  \\
    \end{tabular}
    \end{center}
    \end{table}


    \end{document} 

This table is better but now the negative decimals aren't aligned for negative correlations. Any suggestions would be helpful.

\begin{table}[ht]
\small
\caption{Correlations, means and standard deviations Of model variables}
\label{tb:cor:cha}
\begin{center}
\begin{tabular}{lrrllll}
  \hline
       \multicolumn{7}{l}{Charter Schools}  \\
   \hline
 measure & mean & \makebox [.2cm][c]{sd} & \makebox [.2cm][c]{1} & \makebox [.2cm][c]{2} & \makebox [.2cm][c]{3} & \makebox [.2cm][c]{4} \\
  \hline
\noindent 1. Percent Passing Reading &   .47 &   .20 &  &  &  &  \\
\noindent 2. Percent Minority &   .89 &   .21 & -.38    &  &  &  \\
\noindent 3. Percent Free \& Reduced Lunch &   .72 &   .20 & -.18    &  .33    &  &  \\
\noindent 4. Enrollment  & 679.88 & 192.98 & -.06    & -.17    &  .18    &  \\
\noindent 5. Percent Teachers $<$ 3yrs Experience &   .27 &   .15 & -.22    &  .25    & -.32    & -.28    \\ 
  \hline
     \multicolumn{6}{l}{Districts}  \\
   \hline
\noindent 1. Percent Passing Reading &     .63 &     .14 &  &  &  &  \\
\noindent 2. Percent Minority &     .16 &     .24 & -.47*** &  &  &  \\
\noindent 3. Percent Free \& Reduced Lunch &     .34 &     .21 & -.73*** &  .51*** &  &  \\
\noindent 4. Enrollment  & 11866.79 & 18847.83 & -.39*** &  .71*** &  .50*** &  \\
\noindent 5. Percent Teachers $<$ 3yrs Experience  &     .056 &     .035 & -.37*** &  .06    &  .31*** &  .11    \\ 
   \hline\\[-2.5ex]
     \multicolumn{7}{l}{*Note *p$<$.05, **p$<$.01, ***p$<$.001}  \\
\end{tabular}
\end{center}
\end{table}

Best Answer

Here's a version of your table using the siunitx package for aligning decimal columns, and the array package to simplify making column types. I've also used booktabs which is the standard for publication quality tables. The basic idea is to remove the intercolumn space for most of the columns to make the table more readable.

\documentclass[leavefloats]{apa6e}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage{array} % loaded by booktabs, but included here for explicitness
\usepackage{booktabs}
\usepackage{siunitx}
\newcolumntype{L}{@{}l@{}} % a left column with no intercolumn space on either side
\newcommand{\mc}[1]{\multicolumn{1}{c}{#1}} % shorthand macro for column headings
\abstract{This is an example of of an abstract in APA.}
\begin{document}

\title{A Template for APA Papers}
\shorttitle{APA: A Template}
\author{John}
\authornote{\dots}
\date{\today} % or \date{24Jan11} for example
\maketitle
\section{CORRELATION}

\begin{table}[ht]
\small
\caption{Correlations, means and standard deviations of model variables}
\label{tb:cor:cha}
\centering
\begin{tabular}{LS@{}S@{}SLSLSLS}
\toprule
\multicolumn{7}{l}{Charter Schools}  \\
\midrule
\multicolumn{1}{@{\hspace{1em}}l}{Measure} & \mc{mean} & \mc{sd} & \mc{1} && \mc{2} && \mc{3} && \mc{4} \\
\midrule
1. Percent Passing Reading &   0.469 &   0.199 &  &  &  & &&& \\
2. Percent Minority &   0.888 &   0.214 & -0.385 &   &  & &&&   \\
3. Percent Free \& Reduced Lunch &   0.722 &   0.203 & -0.181  &  &  0.326  &  &  &&  \\
4. Enrollment & 679.880 & 192.984 & -0.063    && -0.168    & & 0.183    &&  \\
5. Percent Teachers $<$ 3yrs Experience &   0.274 &   0.150 & -0.223   & &  0.252    & & -0.316    & & -0.283    \\
\midrule
\multicolumn{7}{@{\hspace{1em}}l}{Districts}  \\
\midrule
1. Percent Passing Reading  &     0.634 &     0.1393 &  &  &  & &&& \\
2. Percent Minority &     0.163 &     0.2374 & -0.470&*** &  &  &&&  \\
3. Percent Free \& Reduced Lunch &     0.337 &     0.2106 & -0.732&*** &  0.512&*** &&  & \\
4. Enrollment & 11866.793 & 18847.8328 & -0.388&*** &  0.715&*** &  0.498&*** &  \\
5. Percent Teachers $<$ 3yrs Experience &     0.056 &     0.0347 & -0.374&*** &  0.064 &   &  0.310&*** &  0.114    \\
\midrule\\[-2.5ex]
\multicolumn{7}{l}{*Note *p$<$.05, **p$<$.01, ***p$<$.001}  \\
\end{tabular}
\end{table}


\end{document} 

partial output of code