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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: outreg2.versionSet error


From   John Luke Gallup <jlgallup@pdx.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: outreg2.versionSet error
Date   Mon, 18 Mar 2013 19:52:59 -0700

Michael,

The maintainer of -outreg2- does not belong to Statalist, so you should send your request to Roy Wada (email address in the version statement below).  

I don't think -outreg2- handles factor variable notation; -outreg- currently does.

John

On Mar 18, 2013, at 4:00 PM, Michael LeGower <mjl88@pitt.edu> wrote:

> There appears to be a flaw in the versionSet program within the outreg2
> package as installed by a -ssc install outreg2- command.  In the copy I
> have, any Stata version greater than 8.2 it treats as version 8.2, which
> it then passes back to the estimation command (if using the -outreg2
> <contents> : <estimation command>- syntax).  This seems to conflict with
> estimation commands that use factor variable notation.
> 
> Here is an example using the 1978 Automobile reference dataset under Stata
> 12.1.
> 
> which outreg2
> *c:\ado\plus\o\outreg2.ado
> *! outreg2 2.2.4 12apr2010 byroywada@hotmail.com
> *! based on outreg 3.0.6/4.0.0 byjohn_gallup@alum.swarthmore.edu
> 
> sysuse auto
> 
> * Syntax 1: Regression with factor variables; Fine in Stata 12, even when
> followed with an -outreg2- command separately
> 
> regress price i.foreign
> outreg2 using test1
> 
> * Syntax 2: -outreg2- prefix before same command; error results
> 
> outreg2 using test2: regress price i.foreign
> 
> * Syntax 3: -outreg2- prefix before same command with -xi- prefix; Fine
> 
> outreg2 using test2: xi: regress price i.foreign
> 
> * Syntax 3b: outreg2 prefix before command with -xi- prefix AND factor
> variable interaction; error
> 
> outreg2 using test2: xi: regress price i.foreign#i.rep78
> 
> With the stock -outreg2- command as installed from SSC, the second syntax
> fails and the first and third run fine.  Adding an interaction term makes
> even the third syntax fail, however.  If the SSC -outreg2- package could
> be updated so that commands 2 and 3b did not produce an error, that would
> be tremendous.  Otherwise, this is to let people know that an -xi- will be
> required if using the -outreg2- prefix before an estimation command with
> factor variable notation, and models with factor variable interactions
> will require you to run the -outreg2- command post estimation.
> 
> Cheers,
> 
> Michael LeGower
> 
> *
> *   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/


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