放错位置 \omit

放错位置 \omit

表格中出现错误misplaced \omit。我不知道发生这种情况的原因(可能是多列?)。你能帮我解决这个问题吗?

\begin{table}[H]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\captionsetup{justification=centering}
\caption{\footnotesize Coefficients of market size and lag dependent when a two-step GMM is employed. \\
Col.(2) includes suspended and withdrawn trials in the dependent}
\label{twstepgmm}
\scalebox{0.6}{ \vspace*{-0.01mm}
\begin{tabular}{l*{2}{D{.}{.}{-1}}}
\toprule 
    & \multicolumn{1}{c}{\textbf{(1)}} 
    & \multicolumn{1}{c}{\textbf{(2)}} \\
    & \multicolumn{1}{c}{\textit{log Trials}} 
    & \multicolumn{1}{c}{\textit{log Trials}}\\ 
\midrule
$\textit{trials}_{t-1}$  &      0.0592   &      0.380\sym{*}      \\
                         &    (0.0426)  &      (0.189)       \\
Log sales                &      0.1208\sym{***} &      -0.533\sym{**}\\
&   (0.159)  & (0.179)
\multicolumn{2}{l}{Year Dummies} & \multicolumn{1}{c}{Yes} 
& \multicolumn{1}{c}{Yes} \\                                            
\midrule  
\multicolumn{1}{l}{Obs.} & \multicolumn{1}{c}{1664} & \multicolumn{1}{c}{1664} \\                                                                                        
\multicolumn{1}{l}{Groups} & \multicolumn{1}{c}{208} & \multicolumn{1}{c}{208}  \\
\bottomrule
\multicolumn{2}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{2}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}}
\begin{spacing}{0.1}
\vspace{0.3cm} 
\footnotesize  
{\fontsize{50}{60}\selectfont}
{\fontsize{50}{60}\selectfont}
{\fontsize{5}{6}\selectfont}
{\Huge }
{\begin{minipage}{5cm}
\tiny Huber-White robust and clustered at ATC-3 level standard errors are in parentheses. (1) is the two-step GMM version of Column (4) Tab.\ref{secstage}, which performed a system one-step GMM. Only the critical coefficients are included. (2) is equal to (1) where also suspended and withdrawn trials are included in the dependent. Only the critical coefficients are included. Both equations are linearized to enable a simple comparison with Column (4) Tab.\ref{secstage}. Thee same results apply if the count of trials is employed as dependent (see \cite{nutarelli})
\end{minipage}}  \\ 
{\fontsize{50}{60}\selectfont}
{\fontsize{5}{6}\selectfont}  
\end{spacing}
\end{table}

答案1

这是尝试对您的代码进行一些排序。我注释掉了无用代码和/或无意义的代码,包括 5 个 [!!]{\fontsize...\selectfont}指令,并且\multicolumn{2}{l}{Year Dummies}仅用替换了Year Dummies。(这可能是您报告的错误消息的来源。)我还分别用\multicolumn{1}{l}{Obs.}\multicolumn{1}{l}{Groups}替换了Obs.Groups。而且,这两个\multicolumn{2}{l}{\footnotesize ...}指令实际上都应该是\multicolumn{3}{l}{\footnotesize ...}指令。

顺便说一句,我看不出该\adjustbox指令有任何理由或理由。使用spacing环境似乎也没什么帮助。

我一直觉得表格中也有一些重大错误。例如,如果因变量是“对数试验”,那么为什么滞后因变量用“trials_{t-1}”表示?它不应该是“对数试验_{t-1}”吗?

在此处输入图片描述

\documentclass{article} % or some other suitable document class
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\usepackage{%%%graphicx,
    caption,
    %%%setspace,
    dcolumn,
    booktabs}
\newcommand{\mcc}[1]{\multicolumn{1}{@{}c@{}}{#1}} % handy shortcut macro

\begin{document}
\begin{table}[ht]

%%%\captionsetup{justification=centering}

\caption{%%%\footnotesize 
Coefficients of market size and lag dependent when a two-step GMM is employed. Col.~(2) includes suspended and withdrawn trials in the dependent.}
\label{twstepgmm}

%%%\scalebox{0.6}{ 
%%%\vspace*{-0.01mm}

\begingroup
\centering
\begin{tabular}{@{} l D{.}{.}{2.6} D{.}{.}{2.5} @{}}
\toprule 
& \mcc{(1)}                 & \mcc{(2)} \\
& \mcc{\textit{log Trials}} & \mcc{\textit{log Trials}}\\ 
\midrule
$\textit{trials}_{t-1}$  &   0.0592          &   0.380\sym{*} \\
                         &  (0.0426)         &  (0.189)       \\
Log sales                &   0.1208\sym{***} &  -0.533\sym{**}\\
                         &  (0.159)          &  (0.179) \\
Year dummies             & \mcc{Yes}         & \mcc{Yes} \\
\midrule
Obs.       & \mcc{1664}  & \mcc{1664} \\                                                                     
Groups     & \mcc{208}   & \mcc{208}  \\
\bottomrule
\multicolumn{3}{@{}l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{3}{@{}l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)} 

%%%\\

\end{tabular}

\endgroup

%%%}
%%%\begin{spacing}{0.1}
%%%\vspace{0.3cm} 
%%%\footnotesize  
%%%{\fontsize{50}{60}\selectfont}
%%%{\fontsize{50}{60}\selectfont}
%%%{\fontsize{5}{6}\selectfont}
%%%{\Huge }
%%%{
%%%\begin{minipage}{5cm}
%%%\tiny 

\medskip\small
Huber-White robust and clustered at ATC-3 level standard errors are in parentheses. (1)~is the two-step GMM version of Column~(4) Tab.~\ref{secstage}, which performed a system one-step GMM\@. Only the critical coefficients are included. (2)~is equal to (1) where also suspended and withdrawn trials are included in the dependent. Only the critical coefficients are included. Both equations are linearized to enable a simple comparison with Column~(4) Tab.~\ref{secstage}. Thee same results apply if the count of trials is employed as dependent (see \cite{nutarelli})

%%%\end{minipage}
%%%}  
%%%\\ 
%%%{\fontsize{50}{60}\selectfont}
%%%{\fontsize{5}{6}\selectfont} 
%%%\end{spacing}

\end{table}
\end{document}

相关内容