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 |
John Luke Gallup <jlgallup@pdx.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Completely new version of -outreg- |

Date |
Thu, 28 Jul 2011 14:51:31 -0700 |

Lucas, On your points below: 1) It is a good suggestion to change the table to which estimation output is merged according to the -using- name. I'll have to think about exactly how to implement this, because there are times where users may wants to send the same output to different tables. These is no logical connection between the tables created by the new version of -outreg- (which are held in Mata matrices) and the -using- name. As you note, it is possible to do what you want right now, but perhaps not in the most intuitive way. 2) You and Eric Booth both found a bug, which I just corrected and submitted to SSC for an update. 3) There is a way to take estimation output from others and format it using -outreg-. You can save the estimation results with the -estimates save <filename>- command and then load it on another computer with -estimates use <filename>-, after which you can use -outreg-. I currently have no option for saving the Mata matrix holding an -outreg- table that could be loaded by someone else. It would not be too difficult to implement, but I am not sure there is much demand for it. 4) I don't have plans to produce Excel or dta output from -outreg-, although I would be willing to collaborate with someone else on this. My feeling is that if one has sufficient control of word processor tables (Word or LaTeX), then manipulating tables in Excel is not necessary. I have never been involved in -outreg2- except for sharing an earlier version of the -outreg- code with Roy Wada, the -outreg2- maintainer. Any code in -outreg2- would have to be completely rewritten for use in the current version of -outreg-. John On Jul 28, 2011, at 11:07 AM, Lucas Ferreira Mation wrote: > Dear John, that is great news. > I´ve tested a little bit. > It is fast and word table looks good. > > A few questions and comments: > 1) for "two or more tables each iteration" what is not very intuitive > (at least being used to outreg2) is the program ignores the using > filename. For example: > sysuse auto, clear > reg mpg foreign > outreg using table1, merge > reg mpg foreign gear_ratio > outreg using table1, merge > reg price foreign > outreg using table2, merge > reg price foreign gear_ratio > outreg using table2, merge > > table 2 output includes the fist 2 regressions. This can be corrected > by specifying the option: > merge(table1) in the first two regressions > merge(table2) in the 3r and 4th two regressions > however it would be ince to default the merge(tableX), in case it is > left unfilled, to obey the using filename. > > 2) i´m getting the same error as Eric Booth when creating a "tex" file: > . reg mpg foreign > . outreg using table3, tex > BegTex(): 3200 conformability error > FrmtOut(): - function returned error > <istmt>: - function returned error > r(3200); > > 3) can outreg be used for editing regression tables without been > preceded by a regression? > Lets say you only receive the regression outputs but have no access to > the database (due to secrecy constrains for example). Or re-estimating > everything just for re-formatting could take to long. > I imagine that this would require you to receive the underlying mata > matrix (or dta) of the outreg table. Than executing the outreg again > with the desired formatting and some "do not add additional column" > option. > (I´m sorry if this already is implemented. I´ve searched the help file > and statalist but did not find it) > > 4) Any ideas on how outreg and outreg2 will evolve/coexist? Unlike > outreg2, outreg version 4 does not produce "excel" and "dta" output. > Do you intend to integrate these features? > > in any case thank you very much for providing this. I´ll keep testing. > > Lucas > > On Thu, Jul 28, 2011 at 2:25 PM, Ricardo Ovaldia <ovaldia@yahoo.com> wrote: >> >> Okay. I restarted Stata and it now works. >> Kind of weird. >> >> Thank you, >> Ricardo >> >> Ricardo Ovaldia, MS >> Statistician >> Oklahoma City, OK >> >> >> --- On Thu, 7/28/11, Anders Alexandersson <andersalex@gmail.com> wrote: >> >>> From: Anders Alexandersson <andersalex@gmail.com> >>> Subject: Re: st: Completely new version of -outreg- >>> To: statalist@hsphsun2.harvard.edu >>> Date: Thursday, July 28, 2011, 11:35 AM >>> Yes, and this may include restarting >>> Stata. >>> I could reproduce the problem using a seemingly updated >>> version of >>> Stata 11.2/SE for Windows. >>> But when I restarted Stata I could no longer reproduce the >>> problem. >>> >>> Anders Alexandersson >>> andersalex@gmail.com >>> >>> Richard Williams <richardwilliams.ndu@gmail.com> >>> wrote: >>>> Works for me on Stata 11.2. As always, make sure >>> everything you have is up >>>> to date. >>> >>> Ricardo Ovaldia wrote: >>>>> >>>>> I tryed using the new -outreg-, but I get an >>> error. >>>>> Are there additional programs that I need to >>> download? >>>>> >>>>> . sysuse auto, clear >>>>> (1978 Automobile Data) >>>>> >>>>> . reg mpg foreign weight >>>>> >>>>> Source | SS df >>> MS Number of obs = >>>>> 74 >>>>> -------------+------------------------------ >>> F( 2, 71) = >>>>> 69.75 >>>>> Model | 1619.2877 2 809.643849 >>> Prob > F = >>>>> 0.0000 >>>>> Residual | 824.171761 71 11.608053 >>> R-squared = >>>>> 0.6627 >>>>> -------------+------------------------------ >>> Adj R-squared = >>>>> 0.6532 >>>>> Total | 2443.45946 73 33.4720474 >>> Root MSE = >>>>> 3.4071 >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>>>> mpg | Coef. Std. Err. >>> t P>|t| [95% Conf. >>>>> Interval] >>>>> >>>>> >>> -------------+---------------------------------------------------------------- >>>>> foreign | -1.650029 1.075994 -1.53 >>> 0.130 -3.7955 >>>>> .4954422 >>>>> weight | -.0065879 .0006371 -10.34 >>> 0.000 -.0078583 >>>>> -.0053175 >>>>> _cons | 41.6797 2.165547 >>> 19.25 0.000 37.36172 >>>>> 45.99768 >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>>>> >>>>> . outreg >>>>> MakeSmat(): 3499 >>> _CColJoin() not found >>>>> CalcStats(): - function >>> returned error >>>>> <istmt>: - >>> function returned error >>>>> r(3499); >>> >>> * >>> * For searches and help try: >>> * http://www.stata.com/help.cgi?search >>> * http://www.stata.com/support/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/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/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/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**Re: st: Completely new version of -outreg-***From:*Anders Alexandersson <andersalex@gmail.com>

**Re: st: Completely new version of -outreg-***From:*Ricardo Ovaldia <ovaldia@yahoo.com>

**Re: st: Completely new version of -outreg-***From:*Lucas Ferreira Mation <lucasmation@gmail.com>

- Prev by Date:
**Re: st: saving the confidence interval as a scalar** - Next by Date:
**RE: st: RE: generating a variable?** - Previous by thread:
**Re: st: Completely new version of -outreg-** - Next by thread:
**st: ROC question: STATA vs SPSS** - Index(es):