Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: PDF tables


From   "Bianca B." <bianca268@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: PDF tables
Date   Thu, 25 Oct 2012 06:13:52 -0700 (PDT)

Thank you for your reply, Billy.

I tried your command but I didn't obtain the table.
Best,
Bianca





I would read through the help file for -estpost- which is a user-written command available from SSC. In short, you're not asking the command -estpost- to post anything at all and probably should have encountered an error message. Instead try

estpost sum gender age education, det

HTH,
Billy

--- On Thu, 10/25/12, Bianca B. <bianca268@yahoo.com> wrote:

> From: Bianca B. <bianca268@yahoo.com>
> Subject: PDF tables
> To: statalist@hsphsun2.harvard.edu
> Date: Thursday, October 25, 2012, 5:34 AM
> Hi Stata users,
> 
> I found in an old post of Martin Weìss the program below
> to
> obtain a table in tex format. 
> // capt ssc inst estout
>  
>  qui{
>      clear*
>      set obs 10000
>      gen x=  rnormal() 
>  
>      estpost summarize x, det
>  }
>  
>  esttab . using myfile.tex, replace ///
>  cells("count mean min p25 p50 p75 max") ///
>  noobs page
>  
>  !texify -p -c -b --run-viewer myfile.tex
> 
> I tried to modify this program to obtain a table with the
> summary statistics of my variables, gender age and
> education. 
> 
> estpost gender age education
> esttab . using myfile.tex, replace ///
> cells("Obs Mean StdDev Min Max") ///
> noobs page
> 
> !texify -p -c -b --run-viewer myfile.tex
> 
> The table I obtained shows only the title of colums without
> the statistics and the name of variables. 
> 
> Any tips on how I could corretly write the program is
> greatly appreciated.
>  
> Bianca 
> 
> 
> 
> 

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index