Tabla que aparece antes del apéndice

Tabla que aparece antes del apéndice

Mi tabla aparece antes del título del Apéndice, en la parte superior de la página. Intenté usar varios comandos como [H], [H!], [hbt!] etc, pero no mueve mi mesa. ¿Quizás podría haber un conflicto con los paquetes aquí?

La parte inferior de mi documento se ve así:

\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}

Los paquetes 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}

Respuesta1

No estoy familiarizado con la clase cas-dc y me da pereza descargarla, así que usé el artículo en su lugar. Además, renuncié al tabular en sí.

Esto coloca ambos \sectiony la tabla dentro \twocolumn[...]para hacer ambos anchos completos y en el orden correcto.

\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}

información relacionada