Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: problems with esttab and latex
From
Megan Stevenson <[email protected]>
To
[email protected]
Subject
st: problems with esttab and latex
Date
Tue, 13 Aug 2013 10:18:35 -0700
Hello,
I am trying to use esttab to produce a table in latex, with the
formatting done by latex - thus I am using the fragment command.
However when I compile in Latex, I get the error message "Misplaced
alignment tab character &". I have looked at the tex fragment
produced by the esttab command and it begins with a "&" which is, I
assume, causing the problem. However I cannot figure out how to fix
it. I have downloaded various esttab packages and they all produce
the same problem. Does anyone know what is going wrong? Your advice
is much appreciated.
I am using Mac OSX and Stata/SE 12, and TexShop. The code is below.
Best, Megan
The code I am using in Stata is as follows:
esttab peerSHdevfac peerCHdevfac using "IDtests_SHCH.tex", replace
fragment tex noconstant nogaps compress label nodepvar t ///
star(+ 0.10 * 0.05 ** 0.01) title("Linear regression of
standardized peer measures, de-meaned from facility") ///
mtitles("Peer SH" "Peer CH") ///
stats(N , labels("Observations" )) ///
addnotes("OLS standard errors.")
The code that I am using in latex is as follows:
\documentclass[11pt]{amsart}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname
#1`/`basename #1 .tif`.png}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle
\begin{table}[htbp]\centering
\input{IDtests_SHCH.tex}
\end{table}
\end{document}
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/