Graphics, Figures & TablesHow can I Import Tables from Stata into Beamer?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Beri Parfait
Posts: 2
Joined: Tue Jun 04, 2019 12:42 pm

How can I Import Tables from Stata into Beamer?

Post by Beri Parfait »

{
\def\sym#1{\ifmmode\^{#1}\else\(^{#1}\)\fi}
\begin{table}[htp]
\tiny
\caption{Correlation Matrix[2009-2017]}
\label{Table4}
\begin{tabular}{l*{8}{c}}
\hline\hline
&\multicolumn{8}{c}{} \\
& FDI & BIZF & INVF & FINF & TRDF & CPI & OPN & GKF \\
\hline
FDI & 1 & & & & & & & \\
BIZF & 0.00369 & 1 & & & & & & \\
INVF & 0.0769 & 0.387\sym{***}& 1 & & & & & \\
FINF & 0.0725 & 0.422\sym{***}& 0.762\sym{***}& 1 & & & & \\
TRDF & -0.00849 & 0.434\sym{***}& 0.315\sym{***}& 0.336\sym{***}& 1 & & & \\
CPI & 0.123\sym{*} & 0.575\sym{***}& 0.477\sym{***}& 0.523\sym{***}& 0.347\sym{***}& 1 & & \\
OPN & 0.180\sym{***}& 0.0440 & -0.0753 & 0.143\sym{**} & 0.0410 & 0.191\sym{***}& 1 & \\
GKF & 0.298\sym{***}& 0.0876 & 0.0434 & 0.153\sym{**} & 0.128\sym{**} & 0.113\sym{*} & 0.229\sym{***}& 1 \\
\hline\hline
\multicolumn{9}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply