I have the following table where I compare OLS and quantile regressions. I would like to use the onslide command to have the last three columns to appear in a second moment (hopefully keeping the heading fixed, so that only the coefficients show up in a second moment).
\documentclass[10pt,english,xcolor={usenames,dvipsnames}]{beamer}
\usepackage{amsmath}
\begin{document}
\begin{table}[ht]
\begin{center}
\begin{tabular}{l*{4}{r @{} l}}
\hline
& (I) & & (II)& & (III)& & (IV)& \\
& OLS & & Q1& & Q2& & Q3& \\
\hline
A& xxx&$^{**}$ & xxx&$^{***}$ & xxx&$^{**}$ & xxx&$^{***}$\\
& (yyy)& & (yyy)& & (yyy)& & (yyy)& \\
B& xxx& & xxx&$^{**}$ & xxx&$^{***}$ & xxx&$^{**}$\\
& (yyy)& & (yyy)& & (yyy)& & (yyy)& \\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}
This thread provides a close solution using the <\onslide> command How to uncover a table column wise in Latex beamer. However, with this approach the headings would show up at the same time as the coefficients.
Also, I would like to keep the command \begin{tabular}{l*{4}{r @{} l}} and not \begin{tabular}{l rl rl rl rl} as the former provides a nicer output with the stars closer to the left border.

articleif you like to have solotion possible only inbeamer? – Zarko Apr 08 '18 at 18:29frame. Please also note, that using a floating environment liketableis not necessary if you don't want to add a caption. Generally, nesting atabularinsde acenterenvironment is not advisable, as it adds additional vertical space. You can use\centeringinstead. – leandriis Apr 08 '18 at 18:48centerenvironment, as beamer centres tables by default (as long as thetableenvironment is used, which is not a float in beamer) – samcarter_is_at_topanswers.xyz Apr 08 '18 at 18:56