Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating Latex Table with frmttable

    Dear Stata-Community,

    I am using the actual version of Stata and want to present my results with tables in a latex document. I am using the command frmttable, where a table should be created out of results stored in a matrix. My code looks as followed and I just constructed a simple matrix (1x2) for illustrations' reason. I want to include the command "fragment" to extracted the latex code for my document but I get the following error message:

    Code:
    . frmttable using auto.tex, statmat(A) ctitle("","Country ID","Weights") sdec(3) fr replace
    option fragment not allowed without tex option
    r(198);
    which I don't understand, since I used the tex option in "using auto.tex". I don't see where my mistake is. Furthermore, without fragment command I am getting a latex document, which is not looking at all like the formatting style in Latex, hence I can't integrated it in my document.

    Code:
    matrix A=(22,23)
    
    frmttable using auto.tex, statmat(A) ctitle("","Country ID","Weights") sdec(3) fragment replace
    I hope someone can help me
    Best regards
Working...
X