I am trying to highlight a row in beamer, but the whole row does not get hihglighted (i.e., there is white space between each column). Is there any way to highlight the entire row by still using the long table? Please also note that there are many other slides, so I had to use many packages that may not seem relevant here. Here is what I have of far:
\documentclass[table,slidestop,compress,mathserif, 10pt]{beamer}
\usetheme{Frankfurt}
\usecolortheme{seahorse}
\usepackage{booktabs, longtable}
\newcommand\mcc[1]{\multicolumn{1}{c}{#1}}
\usepackage{bbm}
\usepackage{array, booktabs, tabularx}
\usepackage{siunitx}
\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
% The main document
\begin{document}
\setcounter{subsection}{1}
\begin{frame}{Regression}
\vspace{-0.50cm}
\begin{table}[htb]
\footnotesize
\begin{tabularx}{\linewidth}{l*{6}{Y}}
\toprule
& \mcc{(I)} & \mcc{(II)} & \mcc{(III)} & \mcc{(IV)} & \mcc{(V)}& \mcc{(VI)} \\\hline
\rowcolor{blue!20} $\mathbbm{1}$(Hosp$_{i})\times\mathbbm{1}$(Doc$_{t}$) & 3.333***&6.333***& 7.333*** & 7.334***& 6.353*** & 6.333*** \\
\rowcolor{blue!10} & (0.111) &(0.112)& (0.112) & (0.113) & (0.173)& (0.178) \\\addlinespace
\midrule
\textbf{Health Variables}
& & & & {X} & {X} & {X} \\
\midrule
\textbf{Other Effects} \\
Time
& & {X} & & & {X} \\
Location
& & & {X} & & & {X} \\
\midrule
Number & {11,210} & {11,210} & {11,210} & {10,504} &{10,504} &{10,504} \\
K-Number & {63.11} & {61.33} & {58.33} & {56.01} & {50.93} & {53.77} \\
\hline
\bottomrule
\end{tabularx}
\end{table}
\end{frame}
\end{document}

\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
However, once I delete this command, the format of the beamer gets messed up.
– Job Apr 15 '20 at 03:09\rowcoloris not trained to collaborate with@{\extracolsep{\fill}}. If you remove this, the problem disappears but the table does no longer fill the full page width. – Apr 15 '20 at 03:11Xcolumn of atabularxtoS(you do not need alongrablehere) but it seems that the cleanest solutions here do not want to collaborate withbeamer/ your document. BTW, I do not see how you got rid of unused packages and libraries, you do not usetikzhere but load\usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{decorations.pathmorphing}twice. – Apr 15 '20 at 03:28