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: Outreg margins error


From   John Luke Gallup <jlgallup@pdx.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Outreg margins error
Date   Wed, 5 Sep 2012 21:45:01 -0700

Carsten's solution does the job, but this problem was caused by a bug I introduced into -outreg- a few days ago when I updated part of the program.  (If you are curious, I invoked a command that has r() values, which wiped out the r(b) and r(V) from the -margins- command).

Kit Baum willing, the new version of -outreg- (4.21) will be posted on SSC.  You can update with -ssc install outreg, replace-.

Once the new version is posted, it won't be necessary to use the -post- option for -margins-.

John

On Sep 5, 2012, at 1:38 PM, Carsten Sauer <carsten.sauer@uni-bielefeld.de> wrote:

> You should use the post option to get the margins as estimation results:
> 
> sysuse auto, clear
> reg price weight length i.foreign
> margins foreign, post
> outreg
> 
> Best, Carsten
> 
> Am 05.09.2012 22:23, schrieb Wameq Raza:
>> Dear STATA users
>> I've been trying to use the outreg command to get an output after
>> running the command to get margins.
>> However, whenever I run the command, it tells me:
>> 
>> -marginal estimates not found; see -help margins-
>> 
>> I tried to emulate the same thing shown in the example using the auto
>> data, but got the same error. Could
>> you kindly suggest anything I can do?
>> 
>> Best
>> Wameq
>> 
> 
> -- 
> 
> Carsten Sauer
> SFB 882 "Von Heterogenitäten zu Ungleichheiten"
> Teilprojekt A6 "Die Legitimation von Ungleichheiten - Strukturelle Bedingungen von Gerechtigkeitseinstellungen"
> Fakultät für Soziologie
> Universität Bielefeld
> Postfach 10 01 31
> 33501 Bielefeld
> Tel.: 0521 106-70056/-6948 (Sekr. Frau Fischer)
> Fax: 0521 106-6479
> 
> *
> *   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/


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