Skip to main content

Questions tagged [stata]

The tag has no usage guidance.

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

Latex error when importing a stacking regression table from STATA

I am having an issue stacking stata regression outputs in latex. I am showing below the first panel of the table only. I have removed the two middle and bottom panels. Here is the Stata code, which ...
Guyle's user avatar
  • 1
0 votes
1 answer
67 views

sj latex example files not compiling using miktex 23.10.12

I am trying to write a latex file using a Stata do file in order to include my Stata workings. I am using the texdoc and sjlatex package. For understanding the procedure, I followed this article. ...
Pallak Goyal's user avatar
0 votes
0 answers
27 views

Error while stacking multiple outputs in one table

I'm trying to generate 3 panels of regression outputs, as shown in https://medium.com/@linglp/nice-regression-tables-in-stata-17d3895befd2, after running the regressions in stata. I implement the code ...
Jan3's user avatar
  • 67
0 votes
0 answers
182 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)...
Nannabanana's user avatar
1 vote
3 answers
623 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}...
siri's user avatar
  • 37
0 votes
0 answers
899 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 ...
user266730's user avatar
1 vote
1 answer
409 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 ...
Hugh's user avatar
  • 15
3 votes
2 answers
297 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 ...
Daycent's user avatar
  • 225
1 vote
2 answers
1k 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 ...
Jan3's user avatar
  • 67
0 votes
0 answers
111 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{...
Samia Islam's user avatar
0 votes
1 answer
1k 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 ...
Hugh's user avatar
  • 15
1 vote
0 answers
864 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{ ...
user151731's user avatar
4 votes
1 answer
355 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 ...
Daycent's user avatar
  • 225
4 votes
2 answers
1k 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}...
pfragon's user avatar
  • 55
2 votes
1 answer
540 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: \...
countercyclical24's user avatar
1 vote
0 answers
538 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 ...
Axel Bøe's user avatar
2 votes
3 answers
1k 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 ...
Ahmad's user avatar
  • 31
1 vote
1 answer
656 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 ...
snadhelta's user avatar
1 vote
2 answers
282 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: }} \\ ...
newbie's user avatar
  • 11
3 votes
2 answers
442 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 ...
Raphaëlle Aulagnon's user avatar
2 votes
1 answer
2k 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 ...
Raphaëlle Aulagnon's user avatar
0 votes
0 answers
519 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 ...
Giovanni Colitti's user avatar
0 votes
0 answers
221 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 ...
Antti's user avatar
  • 145
2 votes
1 answer
250 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....
Britta Pepper's user avatar
3 votes
1 answer
6k 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 ...
Toni's user avatar
  • 33
0 votes
0 answers
172 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 ...
Johnny's user avatar
  • 83
1 vote
1 answer
565 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\...
Johnny's user avatar
  • 83
1 vote
1 answer
294 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 ...
vikram's user avatar
  • 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 ...
Smriti Ganapathi's user avatar