latex table equations doesn't work











up vote
0
down vote

favorite












I want to make a table like thisenter image description here



However, I can only get enter image description here



Here is my code.



documentclass{beamer}
usepackage{booktabs}
usepackage{siunitx}
begin{document}

begin{frame}
frametitle{Simulation example }

begin{table}footnotesize
centering
caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ $(j=1,2,3)$, across 100 replications.}
label{tab:fancy_table}
renewcommand{arraystretch}{0.8}
setlength{tabcolsep}{4mm}
begin{tabular}{l
c
S[separate-uncertainty,table-figures-uncertainty=1]
S[separate-uncertainty,table-figures-uncertainty=1]
S
S}
toprule
{Method} & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
midrule
& $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
PMLE & $lambda_1$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
& $lambda_1$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
midrule
& $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
BC & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
lasso & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
MCP & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
SCAD & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
bottomrule
end{tabular}
end{table}
end{frame}

end{document}









share|improve this question









New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
    – Kurt
    1 hour ago















up vote
0
down vote

favorite












I want to make a table like thisenter image description here



However, I can only get enter image description here



Here is my code.



documentclass{beamer}
usepackage{booktabs}
usepackage{siunitx}
begin{document}

begin{frame}
frametitle{Simulation example }

begin{table}footnotesize
centering
caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ $(j=1,2,3)$, across 100 replications.}
label{tab:fancy_table}
renewcommand{arraystretch}{0.8}
setlength{tabcolsep}{4mm}
begin{tabular}{l
c
S[separate-uncertainty,table-figures-uncertainty=1]
S[separate-uncertainty,table-figures-uncertainty=1]
S
S}
toprule
{Method} & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
midrule
& $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
PMLE & $lambda_1$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
& $lambda_1$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
midrule
& $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
BC & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
lasso & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
MCP & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
SCAD & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
bottomrule
end{tabular}
end{table}
end{frame}

end{document}









share|improve this question









New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
    – Kurt
    1 hour ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to make a table like thisenter image description here



However, I can only get enter image description here



Here is my code.



documentclass{beamer}
usepackage{booktabs}
usepackage{siunitx}
begin{document}

begin{frame}
frametitle{Simulation example }

begin{table}footnotesize
centering
caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ $(j=1,2,3)$, across 100 replications.}
label{tab:fancy_table}
renewcommand{arraystretch}{0.8}
setlength{tabcolsep}{4mm}
begin{tabular}{l
c
S[separate-uncertainty,table-figures-uncertainty=1]
S[separate-uncertainty,table-figures-uncertainty=1]
S
S}
toprule
{Method} & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
midrule
& $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
PMLE & $lambda_1$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
& $lambda_1$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
midrule
& $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
BC & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
lasso & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
MCP & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
SCAD & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
bottomrule
end{tabular}
end{table}
end{frame}

end{document}









share|improve this question









New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to make a table like thisenter image description here



However, I can only get enter image description here



Here is my code.



documentclass{beamer}
usepackage{booktabs}
usepackage{siunitx}
begin{document}

begin{frame}
frametitle{Simulation example }

begin{table}footnotesize
centering
caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ $(j=1,2,3)$, across 100 replications.}
label{tab:fancy_table}
renewcommand{arraystretch}{0.8}
setlength{tabcolsep}{4mm}
begin{tabular}{l
c
S[separate-uncertainty,table-figures-uncertainty=1]
S[separate-uncertainty,table-figures-uncertainty=1]
S
S}
toprule
{Method} & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
midrule
& $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
PMLE & $lambda_1$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
& $lambda_1$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
midrule
& $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
BC & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
lasso & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
MCP & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
midrule
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
SCAD & $lambda_1$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_1$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
bottomrule
end{tabular}
end{table}
end{frame}

end{document}






tables beamer






share|improve this question









New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 1 hour ago









Henri Menke

68k7150255




68k7150255






New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









user175996

1




1




New contributor




user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user175996 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
    – Kurt
    1 hour ago


















  • Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
    – Kurt
    1 hour ago
















Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
– Kurt
1 hour ago




Welcome to TeX.SE! Please make your code snippet compilable! What is your problem? Please explain it in your question ...
– Kurt
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I'm not entirely sure what you want. Is it automatically adding .0 to integers or having whitespace instead of rules or centred dots as decimal markers?



documentclass{beamer}
usepackage{booktabs}
usepackage{siunitx}
sisetup{output-decimal-marker={cdot}}
begin{document}

begin{frame}{Simulation example }

begin{table}
footnotesize
centering
caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ ($j=1,2,3$), across 100 replications.}
label{tab:fancy_table}
renewcommand{arraystretch}{0.8}
setlength{tabcolsep}{4mm}
begin{tabular}{
@{}
l
c
S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
S[table-format=2.1,round-integer-to-decimal,round-mode=places,round-precision=1]
S[table-format=1.1,round-integer-to-decimal,round-mode=places,round-precision=1]
@{}
}
Method & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
addlinespace
& $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
PMLE & $lambda_2$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
& $lambda_3$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
addlinespace
& $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
BC & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
addlinespace
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
lasso & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
addlinespace
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
MCP & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
addlinespace
Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
SCAD & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
& $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
end{tabular}
end{table}
end{frame}

end{document}


enter image description here






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    user175996 is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462903%2flatex-table-equations-doesnt-work%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I'm not entirely sure what you want. Is it automatically adding .0 to integers or having whitespace instead of rules or centred dots as decimal markers?



    documentclass{beamer}
    usepackage{booktabs}
    usepackage{siunitx}
    sisetup{output-decimal-marker={cdot}}
    begin{document}

    begin{frame}{Simulation example }

    begin{table}
    footnotesize
    centering
    caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ ($j=1,2,3$), across 100 replications.}
    label{tab:fancy_table}
    renewcommand{arraystretch}{0.8}
    setlength{tabcolsep}{4mm}
    begin{tabular}{
    @{}
    l
    c
    S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
    S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
    S[table-format=2.1,round-integer-to-decimal,round-mode=places,round-precision=1]
    S[table-format=1.1,round-integer-to-decimal,round-mode=places,round-precision=1]
    @{}
    }
    Method & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
    addlinespace
    & $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
    PMLE & $lambda_2$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
    & $lambda_3$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
    addlinespace
    & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
    BC & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
    & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
    addlinespace
    Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
    lasso & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
    & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
    addlinespace
    Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
    MCP & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
    & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
    addlinespace
    Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
    SCAD & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
    & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
    end{tabular}
    end{table}
    end{frame}

    end{document}


    enter image description here






    share|improve this answer



























      up vote
      0
      down vote













      I'm not entirely sure what you want. Is it automatically adding .0 to integers or having whitespace instead of rules or centred dots as decimal markers?



      documentclass{beamer}
      usepackage{booktabs}
      usepackage{siunitx}
      sisetup{output-decimal-marker={cdot}}
      begin{document}

      begin{frame}{Simulation example }

      begin{table}
      footnotesize
      centering
      caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ ($j=1,2,3$), across 100 replications.}
      label{tab:fancy_table}
      renewcommand{arraystretch}{0.8}
      setlength{tabcolsep}{4mm}
      begin{tabular}{
      @{}
      l
      c
      S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
      S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
      S[table-format=2.1,round-integer-to-decimal,round-mode=places,round-precision=1]
      S[table-format=1.1,round-integer-to-decimal,round-mode=places,round-precision=1]
      @{}
      }
      Method & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
      addlinespace
      & $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
      PMLE & $lambda_2$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
      & $lambda_3$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
      addlinespace
      & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
      BC & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
      & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
      addlinespace
      Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
      lasso & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
      & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
      addlinespace
      Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
      MCP & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
      & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
      addlinespace
      Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
      SCAD & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
      & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
      end{tabular}
      end{table}
      end{frame}

      end{document}


      enter image description here






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        I'm not entirely sure what you want. Is it automatically adding .0 to integers or having whitespace instead of rules or centred dots as decimal markers?



        documentclass{beamer}
        usepackage{booktabs}
        usepackage{siunitx}
        sisetup{output-decimal-marker={cdot}}
        begin{document}

        begin{frame}{Simulation example }

        begin{table}
        footnotesize
        centering
        caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ ($j=1,2,3$), across 100 replications.}
        label{tab:fancy_table}
        renewcommand{arraystretch}{0.8}
        setlength{tabcolsep}{4mm}
        begin{tabular}{
        @{}
        l
        c
        S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
        S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
        S[table-format=2.1,round-integer-to-decimal,round-mode=places,round-precision=1]
        S[table-format=1.1,round-integer-to-decimal,round-mode=places,round-precision=1]
        @{}
        }
        Method & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
        addlinespace
        & $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
        PMLE & $lambda_2$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
        & $lambda_3$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
        addlinespace
        & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        BC & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        lasso & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        MCP & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        SCAD & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        end{tabular}
        end{table}
        end{frame}

        end{document}


        enter image description here






        share|improve this answer














        I'm not entirely sure what you want. Is it automatically adding .0 to integers or having whitespace instead of rules or centred dots as decimal markers?



        documentclass{beamer}
        usepackage{booktabs}
        usepackage{siunitx}
        sisetup{output-decimal-marker={cdot}}
        begin{document}

        begin{frame}{Simulation example }

        begin{table}
        footnotesize
        centering
        caption{Performance of five methods at penalty levels $lambda_j={2^{j-1}(logp)/n}^{1/2}$ ($j=1,2,3$), across 100 replications.}
        label{tab:fancy_table}
        renewcommand{arraystretch}{0.8}
        setlength{tabcolsep}{4mm}
        begin{tabular}{
        @{}
        l
        c
        S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
        S[table-format=-1.1+-1.1,separate-uncertainty,table-figures-uncertainty=1]
        S[table-format=2.1,round-integer-to-decimal,round-mode=places,round-precision=1]
        S[table-format=1.1,round-integer-to-decimal,round-mode=places,round-precision=1]
        @{}
        }
        Method & & {$hat{sigma}/sigma$} & {$bar{sigma}/sigma$} & {AMS} & {SSP} \
        addlinespace
        & $lambda_1$ & 1.6 pm 0.5 & -1.1 pm 0.6 & 7.6 & 1 \
        PMLE & $lambda_2$ & 2.6 pm 0.5 & -0.2 pm 0.5 & 3 & 1 \
        & $lambda_3$ & 3.7 pm 0.6 & 1.1 pm 1.2 & 1.9 & 0.3 \
        addlinespace
        & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        BC & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        lasso & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        MCP & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        addlinespace
        Scaled & $lambda_1$ & -0.1 pm 0.6 & -2.2 pm 0.7 & 15.3 & 1 \
        SCAD & $lambda_2$ & 1.3 pm 0.6 & -0.2 pm 0.5 & 3.2 & 1 \
        & $lambda_3$ & 3.1 pm 0.7 & 0.9 pm 1.2 & 2.1 & 0.4 \
        end{tabular}
        end{table}
        end{frame}

        end{document}


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 42 mins ago

























        answered 49 mins ago









        Henri Menke

        68k7150255




        68k7150255






















            user175996 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            user175996 is a new contributor. Be nice, and check out our Code of Conduct.













            user175996 is a new contributor. Be nice, and check out our Code of Conduct.












            user175996 is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462903%2flatex-table-equations-doesnt-work%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Setup Asymptote in Texstudio