特定位置的桌子

特定位置的桌子

我試圖將表格放在文本中的特定位置。我的主管說我可以將表格放入某種方程中,這樣它們就不再是浮點數,但我不太確定他的意思。例如我的部分程式碼如下。

    \begin{table}[H]
\begin{center}
\caption{\label{tab:IPF1} The observed number of counts of the infant survival data}
\begin{tabular}{@{} llcc @{}}
\toprule
& & \multicolumn{2}{c}{Survival}\\ 
\cmidrule{3-4}
Clinic & Care & No & Yes  \\
\midrule
A & Less & 3& 176  \\ 
&More & 4 & 293  \\ \addlinespace
B & Less & 17 & 197 \\ 
& More & 2 & 23 \\ 
\bottomrule
\end{tabular} 

\end{center}
\end{table}


Tables \ref{marginalcountcs1} and \ref{marginalcountca1} are the marginal counts of the cliques $[CS]$ and $[CA]$ respectively.

\begin{table}
    \begin{minipage}{.5\linewidth}
      \centering
            \caption{Marginal count of clique $[CS]$}
             \label{marginalcountcs1}
            \begin{tabular}{@{} lcc @{}}
                \toprule
                & \multicolumn{2}{c}{Survival}\\ 
                Clinic  & No & Yes  \\
                \midrule
                A & 7& 469  \\ 
                B & 19 & 220 \\
                \bottomrule

            \end{tabular} 
    \end{minipage}%
    \begin{minipage}{.5\linewidth}
      \centering
        \caption{Marginal count of clique $[CA]$} 
        \label{marginalcountca1}
        \begin{tabular}{@{} lcc @{}}
                \toprule
                & \multicolumn{2}{c}{Care}\\ 
                \cmidrule{2-3}
                Clinic  & Less & More \\
                \midrule
                A & 179 & 297  \\ 
                B & 214 & 25 \\
                \bottomrule

            \end{tabular} 
    \end{minipage} 
\end{table}

Now, the first step of the algorithm is setting the ML estimates to 1 for all the cells in the contingency table. This can be seen in Table \ref{tab:IPF1}.enter code here

然而,表格最終會像這樣分組。 在此輸入影像描述

我嘗試過在 \begin{table} 之後使用許多字母,例如 [h]、[ht]、[b],但是這些字母都不起作用。

相關內容