Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

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

From |
"Bianca B." <bianca268@yahoo.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Re: PDF tables |

Date |
Fri, 26 Oct 2012 03:05:32 -0700 (PDT) |

Billy, I downloaded and installed the complete version of MiKTeX 2.9 and I obtained the table with the summary statistics. Thank you, I'm not always understand the help file well. Quite a lot of things are still unclear for me such as how to change the title of the table and to substitute the name of variables by their labels. However, thank you very much for you help. Bianca --- On Thu, 10/25/12, William Buchanan <william@williambuchanan.net> wrote: > From: William Buchanan <william@williambuchanan.net> > Subject: Re: st: Re: PDF tables > To: statalist@hsphsun2.harvard.edu > Date: Thursday, October 25, 2012, 6:25 AM > Bianca, > > Have you tried reading the help file for -estpost-? > > qui{ > clear > set obs 10000 > g gender=1 in 1/500 > replace gender=0 if gender!=1 > g age=runiform() > g education=runiform() > } > estpost sum gender age education, det > esttab . using myfile.tex, cells("count mean sd min max") > noobs page > !texify -p -c -b --run-viewer myfile.tex > > The only issue I ran into was with the bash command: > > /bin/bash: texify: command not found > > However, the LaTeX document was created, and is appended > below. As stated in the Statalist FAQ, you are asked to send > exactly what you typed and exactly what the response from > Stata was. Do you have (La)TeX installed on your system? Are > you issuing the system command with the correct syntax for > your operating system? > > > > % 25 Oct 2012 06:21:28 > \documentclass{article} > \begin{document} > { > \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} > \begin{tabular}{l*{1}{ccccc}} > \hline\hline > > &\multicolumn{5}{c}{(1)} > > > \\ > > &\multicolumn{5}{c}{} > > > \\ > & > count& > mean& sd& > min& > max\\ > \hline > gender & > 10000& > .05& .2179558& > 0& > 1\\ > age & > 10000& > .5012232& .2899364& > .0000972& .9999833\\ > education & > 10000& > .5028437& .28868& > .0000418& .9999534\\ > \hline\hline > \end{tabular} > } > \end{document} > > HTH, > Billy > > > > On Oct 25, 2012, at 6:13 AM, Bianca B. wrote: > > > 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/ > > > * > * 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/ > * * 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/

- Prev by Date:
**Re: st: Create Timeline based on Dates** - Next by Date:
**st: confidence intervals of predicted risk after stcox** - Previous by thread:
**using -cond- to create a indicator [was: Re: st: intcens: how to estimate mean and variance after intcens]** - Next by thread:
**st: confidence intervals of predicted risk after stcox** - Index(es):