Questions tagged [stata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
3 answers
52 views

Multi-column table produced by STATA: Why is the last column not spaced properly?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{natbib} \usepackage{lscape} \begin{document} \begin {landscape} \begin{table}[htbp]\centering \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}...
user avatar
  • 13
0 votes
0 answers
67 views

Export "tab" table from Stata to Latex

I would like to transfer a table that I've created with the "tab" command in Stata directly to Latex. In other cases, I've used the esttab and estout commands (and I've read a number of ...
user avatar
1 vote
1 answer
60 views

Table column spacing not even - Stata to LaTeX

I am using the following Stata code to export a table containing the means of 4 variables over 5 period. est clear forv p=1/5 { eststo filenum`p': quietly estpost summarize x1111 x22222 x33333333 ...
user avatar
  • 15
3 votes
2 answers
80 views

variable into TEX document?

I am trying to get a STATA macro or an R variable into Latex. This is relatively straightforward with R markdown, but I'm hoping for a pure TeX solution. e.g. say I have a document that says Our ...
user avatar
  • 205
0 votes
0 answers
28 views

Why shown text instead of table?

I tried the following command but they doesn't work as I expected. The table are export from state by esttab and stores in .tex I really appreciate your time and help!
user avatar
  • 1
1 vote
2 answers
166 views

How to create descriptive statistics table of a given style? [closed]

I want to create a descriptive statistics table which looks like this: especially how the two categories: insured and non insured appear side by side. I tried estpost tabstat by categories in stata ...
user avatar
  • 67
0 votes
0 answers
33 views

My \usepackage{stata} is giving me an error on LaTeX

\documentclass{article} \usepackage{color} \usepackage{amsmath} \usepackage{multicol} \usepackage{geometry} \usepackage{graphicx} \usepackage{tikz} \usepackage{amssymb} \usepackage{cite} \usepackage{...
user avatar
0 votes
1 answer
417 views

! Misplaced \noalign. \bottomrule error with \estauto \estwide [duplicate]

I am using the following Stata code to create a table with three regression models. esttab model_E1* using "C_1_NM.tex", replace booktabs fragment alignment(S) varwidth(25) nomtitles label ...
user avatar
  • 15
1 vote
0 answers
261 views

Append separate T-test results using esttab [closed]

Please, I would like to append the results from several t-tests in one table using esttab which is from the Stata Journal. I have done the following: sysuse auto first, test that price=turn quietly{ ...
user avatar
  • 69
3 votes
1 answer
168 views

How to load additional packages with R::rticles?

I mostly code in R, and have been using knitr Rnw for a while, mostly following the best practices outline in 14mech14's YouTube videos, with a parent rnw document, child rnw document, and a document ...
user avatar
  • 205
4 votes
2 answers
384 views

Reduce space between columns in a table exported from Stata

I have been trying to reduce the space between the columns in a table that was exported directly from Stata. The table is the following: \begin{table}[H] \centering \def\sym#1{\ifmmode^{#1}\else\(^{#1}...
user avatar
  • 55
3 votes
1 answer
171 views

How to make the space between coefficient and standard errors smaller from Stata on LaTeX?

I used outreg command to get the following tex code, yet I cannot find how to make the coefficients and their standard errors as close as possible. The code goes as follows: The preamble: \...
user avatar
1 vote
0 answers
201 views

Table subtitle in Stata estout to LaTex-table

I am trying to write table "subtitle" text that sits on top of the table, below the caption. I am using esttab in Stata to get the output below, but I am unable to make the aforementioned ...
user avatar
1 vote
3 answers
411 views

Threepart Table with several panels

I have an issue with my threeparttables receiving input from Stata. I used to work earlier and it worked perfectly. But I twisted my tables a little and it throws error. I want to have a table with ...
user avatar
  • 21
1 vote
1 answer
152 views

Match width of minipage footnote to table environment in which it sits

I have placed table notes inside a \minipage environment, inside a \table environment. I want to hand the \minipage a width argument such that it will match any arbitrary width of the \table in which ...
user avatar
1 vote
2 answers
94 views

Table spills out of the page margin

I am just learning LaTex. I used stata and got the following { \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \begin{tabular}{l*{3}{ccc}l} \hline \multicolumn{11}{l}{\textit{Panel A: }} \\ ...
user avatar
  • 11
3 votes
2 answers
217 views

Statistics Table too large [duplicate]

I would like to display some statistics and difference in means by treatment arm on a single table. The data is exported from stata. I would like to allocate more space to the first column with the ...
user avatar
2 votes
1 answer
813 views

Stata exported tables too wide

I have been trying to upload six-column tables to Latex/Overleaf from Stata. Data exported well but I have been struggling to adjust to Latex format, and some columns don't appear as tables are too ...
user avatar
0 votes
0 answers
217 views

using tabout to produce multi-page latex tables

I want to produce a LaTeX frequency table with many variables using the user written tabout command in Stata. Because there are so many variables, the table needs to span multiple pages. I believe ...
user avatar
0 votes
0 answers
93 views

"Missing \endgroup inserted" with tabular - possible mismatch with adjustbox?

I am writing a document for which I need to insert tables produced by the statistical progam Stata. More specifically I am using Stata package outreg2. Here is an example of the type of a table that I ...
user avatar
  • 145
2 votes
1 answer
172 views

Table does not flush right with siunitx (table format), esttab, asterisks and integers

I use Stata's esttab command to create various tables with t-test results. In Latex, I use siunitx for a proper layout of the table. However, I am unable to code the table as such does it flush right....
user avatar
  • 23
3 votes
1 answer
4k views

Stata to Latex: Formatting a table - width, wrapping notes and caption position

I'm a newbie to stata and latex when it comes to direct export of tables. After reading some documentation, I used the following code (after labeling the variables): eststo: quietly regress defgh ...
user avatar
  • 33
0 votes
0 answers
124 views

topf- and botf-equivalent (in tabout-stata) for outreg2

I am wondering if there is a topf- and botf-equivalent (used in tabout-stata) for outreg2? What I wanna do is tell stata to insert some TeX code into the top and bottom of file when it outputs the ...
user avatar
  • 83
1 vote
1 answer
471 views

error in tex file generated by stata tabout command

\documentclass[]{scrartcl} \usepackage{booktabs} \usepackage{tabularx} \usepackage{rotating} \begin{document} \begin{sidewaystable}[h!] \footnotesize \newcolumntype{Y}{>{\raggedleft\...
user avatar
  • 83
1 vote
1 answer
164 views

Unresolved references label within caption for STATA tables

I am using stata to generate a table. This STATA generated tex table has label defined within \caption{} command. This labeling should work. But it gives me unresolved references (Table ??). When I ...
user avatar
  • 13
0 votes
1 answer
1k views

Cannot find package stata.sty [duplicate]

I am using the command texdoc on stata to generate LaTex code. However, whenever I try running the code using pdfLaTex on TexWorks, I get an error saying that the package stata.sty could not be found ...
user avatar