Graphics, Figures & TablesTable: set up exponent into numbers

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
marcio
Posts: 4
Joined: Wed Nov 04, 2009 8:00 pm

Table: set up exponent into numbers

Post by marcio »

Hi listers,
I've made some research but no success in finding what I want.
I defined a table and I would like to set up an exponent into my value numbers, for example: 2x10ˆ{-6}. The -6 is supposed to be the exponent of 2x10.
I found the TABLENOTES command but this one is for setting up a comment at the bottom of the table according to the value number. Any suggestions.
Thanks in advance.
Marcio

My code is the following:

Code: Select all

\begin{table}
\begin{threeparttable}[!ht]
\caption{Mean, bias, variance, relative bias and relative stability for the mean, median, quantile (0.9) and Gini coefficient, by bootstrap method, for the normal population under simple random sampling without replacement}
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}} l r r r r r } \hline
Bootstrap Method & Mean & Bias & Variance & Rel. Bias & Rel. Stab. \\ \hline
MEAN &  &  &  &  &  \\
RWOriginal & 10.023 & ???2x10ˆ{-6}??? & 0.004 & 0.022 & 0.068 \\
RWY & 10.023 & ???2x10ˆ{-6}??? & 0.004 & 0.022 & 0.068 \\ \hline
MEDIAN &  &  &  &  &  \\
RWOriginal & 10.002 & 0.017 & 0.007 & 0.035 & 0.260 \\
RWAdjusted & 9.990 & 0.005 & 0.007 & 0.035 & 0.260 \\
RWY & 9.990 & 0.005 & 0.007 & 0.073 & 0.369 \\ \hline
QUANTILE 0.9 &  &  &  &  &  \\
RWOriginal & 11.907 & -0.781& 0.018 & -0.137 & 0.264 \\
RWAdjusted & 12.688 & -0.045 & 0.018 & -0.137 & 0.264 \\
RWY & 12.700 & 0.012 & 0.020 & -0.041 & 0.330 \\ \hline
GINI &  &  &  &  &  \\
RWOriginal & 0.079 & -0.033 & 0.001 & 0.903 & 0.911 \\
RWY & 0.112 & -0.022 & 0.022 & 1.889 & 1.896 \\ \hline
\end{tabular*}
Note: The results are based on 1,000 samples, and for each sample 999 bootstrap replicates.
\end{threeparttable}
\end{table}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table: set up exponent into numbers

Post by gmedina »

Hi,

since your data are numeric, it is preferable to use columns in math mode (and then you can use the standard command for superscripts). This can be done in the following way:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\usepackage{threeparttable}

% column type for math expressions
\newcolumntype{R}{>{$}r<{$}}

\begin{document}

\begin{table}
\begin{threeparttable}[!ht]
\caption{Mean, bias, variance, relative bias and relative stability for the mean, median, quantile (0.9) and Gini coefficient, by bootstrap method, for the normal population under simple random sampling without replacement}
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}} l RRRRR } \hline
Bootstrap Method & \text{Mean} & \text{Bias} & \text{Variance} & \text{Rel. Bias} & \text{Rel. Stab.} \\ \hline
MEAN &  &  &  &  &  \\
RWOriginal & 10.023 & 2\times 10^{-6} & 0.004 & 0.022 & 0.068 \\
RWY & 10.023 & 2\times 10^{-6} & 0.004 & 0.022 & 0.068 \\ \hline
MEDIAN &  &  &  &  &  \\
RWOriginal & 10.002 & 0.017 & 0.007 & 0.035 & 0.260 \\
RWAdjusted & 9.990 & 0.005 & 0.007 & 0.035 & 0.260 \\
RWY & 9.990 & 0.005 & 0.007 & 0.073 & 0.369 \\ \hline
QUANTILE 0.9 &  &  &  &  &  \\
RWOriginal & 11.907 & -0.781& 0.018 & -0.137 & 0.264 \\
RWAdjusted & 12.688 & -0.045 & 0.018 & -0.137 & 0.264 \\
RWY & 12.700 & 0.012 & 0.020 & -0.041 & 0.330 \\ \hline
GINI &  &  &  &  &  \\
RWOriginal & 0.079 & -0.033 & 0.001 & 0.903 & 0.911 \\
RWY & 0.112 & -0.022 & 0.022 & 1.889 & 1.896 \\ \hline
\end{tabular*}
Note: The results are based on 1,000 samples, and for each sample 999 bootstrap replicates.
\end{threeparttable}
\end{table}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
marcio
Posts: 4
Joined: Wed Nov 04, 2009 8:00 pm

Re: Table: set up exponent into numbers

Post by marcio »

Thanks Gmedina!
I got another problem, the data inside my table is too big and I need to define a small font for the numbers. I can use the \scalebox{} command for the case of a regular table. But I am using a Threeparttable table, where the \scalebox{} command didn't work. I didn't find any info about defining the size of Three parttable. Does anybody has any suggestions?
Thanks in advance,
Marcio
Post Reply