Tabela que aparece antes do apêndice

Tabela que aparece antes do apêndice

Minha tabela aparece antes do título do Apêndice, no topo da página. Tentei usar vários comandos como [H], [H!] , [hbt!] etc, mas não move minha mesa. Poderia haver um conflito com pacotes aqui, talvez?

A parte inferior do meu documento fica assim:

\printcredits
\bibliographystyle{unsrtnat}
% Loading bibliography database
\bibliography{mybibliography}

\newpage
\appendix
\section{Appendix}



\begin{table*}[h]
\caption{Average peer effect - Pre-COVID sample.}
\begin{center}
\begin{footnotesize}
\begin{tabular}{l D{)}{)}{10)3} D{)}{)}{10)3} D{)}{)}{11)3} D{)}{)}{11)3}}
\hline
 & \multicolumn{1}{c}{Model 1} & \multicolumn{1}{c}{Model 2} & \multicolumn{1}{c}{Model 3} & \multicolumn{1}{c}{Model 4} \\
\hline

\hline
\end{tabular}
 \begin{tablenotes}
      \begin{footnotesize}
       \item \textit{Notes:} The table reports results of a logistic regression, explaining the probability for a dwelling to adopt a retrofit measure. 0-50 meters is a dummy variable for location between 0 and 50 meters from the nearest block leader; other distance variables are defined correspondingly (The reference category is a distance larger than 500 meters). Standard errors (clustered at community level) are in parentheses. *,**,*** indicate statistical significance at the 10\%, 5\% and 1\% level respectively.   
      \end{footnotesize}
       
    \end{tablenotes}
\end{footnotesize}
\end{center}
\end{table*}

\end{document}

Os pacotes que uso:

\documentclass[a4paper,fleqn]{cas-dc}

% If the frontmatter runs over more than one page
% use the longmktitle option.

%\documentclass[a4paper,fleqn,longmktitle]{cas-sc}

%\usepackage[numbers]{natbib}
%\usepackage[authoryear]{natbib}
\usepackage[numbers]{natbib}
%\usepackage[hypcap=true]{hyperref}
\usepackage{threeparttable}
\usepackage{tabularx}
\usepackage{float}
\usepackage{placeins}
\usepackage{appendix}
\usepackage[final]{changes}

Responder1

Não estou familiarizado com a classe cas-dc e estou com preguiça de baixá-la, então usei o artigo. Além disso, desisti do próprio tabular.

Isso coloca ambos \sectione o tabular dentro \twocolumn[...]para torná-los com largura total e na ordem correta.

\documentclass[a4paper,fleqn,twocolumn]{article}
\usepackage{threeparttable}
\usepackage{appendix}
\usepackage{caption}
\usepackage{lipsum}% random text

\begin{document}
\tableofcontents

\listoftables

\appendix
\twocolumn[\section{Appendix}
  \captionof{table}{Average peer effect - Pre-COVID sample.}
  \begin{tablenotes}
    \footnotesize
    \item \textit{Notes:} The table reports results of a logistic regression, explaining the probability for a dwelling to adopt a retrofit measure. 0-50 meters is a dummy variable for location between 0 and 50 meters from the nearest block leader; other distance variables are defined correspondingly (The reference category is a distance larger than 500 meters). Standard errors (clustered at community level) are in parentheses. *,**,*** indicate statistical significance at the 10\%, 5\% and 1\% level respectively.   
  \end{tablenotes}
  \vspace{\textfloatsep}]

\lipsum[1-6]

\end{document}

informação relacionada