Questions tagged [stata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Stata How to esttab tex when using correlate

sysuse auto, clear estpost correlate price mpg rep78, matrix listwise esttab using "names.tex",replace unstack varlab(rep78 "rep\$_{78}\$" ) substitute("\_" "_"...
0 votes
0 answers
29 views

Estauto & longtable

I'm trying to make my Stata output span several pages in the LaTeX document. With longtable, this isn't working. My table doesn't continue onto the next page (only the table notes are on the next page)...
0 votes
0 answers
95 views

Stata - Esttab to Latex Decimal Alignment

I am trying to output a LaTex file using Stata's esttab command. I cannot get the decimals to align, nor can I get the nice formatting from the "booktabs" option to work. I also would like ...
1 vote
3 answers
290 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}...
  • 25
0 votes
0 answers
466 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 ...
1 vote
1 answer
200 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 ...
  • 15
3 votes
2 answers
178 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 ...
  • 205
0 votes
0 answers
31 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!
  • 1
1 vote
2 answers
650 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 ...
  • 67
0 votes
0 answers
73 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{...
0 votes
1 answer
847 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 ...
  • 15
1 vote
0 answers
568 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{ ...
  • 79
3 votes
1 answer
255 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 ...
  • 205
4 votes
2 answers
669 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}...
  • 55
2 votes
1 answer
302 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: \...
1 vote
0 answers
345 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 ...
2 votes
3 answers
805 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 ...
  • 31
1 vote
1 answer
329 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 ...
1 vote
2 answers
147 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: }} \\ ...
  • 11
3 votes
2 answers
317 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 ...
2 votes
1 answer
1k 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 ...
0 votes
0 answers
364 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 ...
0 votes
0 answers
128 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 ...
  • 145
2 votes
1 answer
194 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....
  • 23
3 votes
1 answer
5k 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 ...
  • 33
0 votes
0 answers
152 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 ...
  • 83
1 vote
1 answer
527 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\...
  • 83
1 vote
1 answer
217 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 ...
  • 13
0 votes
1 answer
2k 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 ...