Newbie question here. I am looking for a way to align my last column which is stretched.
Looked for an answer at: booktabs with custom column spacing
I tried using the online table generator for LaTeX, and I had a table working. The columns became shifted and I am not sure how to tweak or fix this in R Markdown using LaTeX commands. The generator feels a bit much to use, I'd rather do it myself.
As far as I know, the commands below are correct, but I am missing something.
\begin{tabular}{@{}llcc@{}}
Implies the alignment of the 4 columns, right? Aligning the last column to the left does not help. It seems the stretched text from the bottom of the table causes it stretch perhaps?
\multicolumn{4}{l} States that there should be 4 columns.
So I guess the question is how do I limit the range on the bottom line, as in a new line to continue the subscript? Or just make a new line?
Adding \multicolumn{4}{l}{\textit{Italics}: significant model} returns an error.
Code:
\begin{table}[h]
\centering
\begin{tabular}{@{}llcc@{}}
\toprule
{\textbf{Parameter}} & \multicolumn{1}{l}{\textit{Null\_model}} & \multicolumn{1}{l}{\textit{Model 1}} & \multicolumn{1}{l}{\textit{Model 2}} \\
\midrule
Intercept & .652 & -.976 & -.983 \\
Round & -.145 & .1082 & .111 \\
Treatment & & \underline{5.875} & \underline{5.653} \\
Neuroticism & & & .013 \\
Neur * Treatment & & & .019 \\
Round * Treatment & & \underline{-.955} & \underline{-.909} \\
\midrule
LogLikelihood & -830.51 & -826.4 & \textbf{-825.92} \\
Deviance & 1661.0 & 1652.8 & \textbf{1651.8} \\
df residual & \textbf{235} & 233 & 231 \\
Akaike IC & 1671.0 & \textbf{1666.8} & 1669.8 \\
Bayesian IC & \textbf{1688.4} & 1691.2 & 1701.2 \\
\midrule
\multicolumn{4}{l}{\textbf{Bold}: most optimal values. \underline{Underlined}: significant predictor \textit{Italics}: significant model}
\end{tabular}
\end{table}
Shows this:



