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: RE: nlsur and estout


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: nlsur and estout
Date   Fri, 27 Aug 2010 16:19:47 +0200

<>

You can kill the "_cons" with an -estout- option:

*************
sysuse auto, clear
nlsur (price  = {a1} + {b1}*length)  /* 
*/ (weight   = {a2} + {b2}*displacement), /* 
*/ ifgnls
esttab, noeqlines substitute(_cons)
*************


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Thoms
Sent: Freitag, 27. August 2010 12:38
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: nlsur and estout

your answer was very helpful. But only after I added the noeqlines 
option I realized that the problemis bigger.

As I explained below because of the way that the e(b) after nlsur is 
labelled esttab seems to believe there are two coefficients for every 
single coefficient.

Thanks,

Thomas

On 26/08/2010 16:50, Martin Weiss wrote:
> <>
>
> Anything wrong with yesterday`s answer?
>
http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.1008
> /Author/article-1254.html
>
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Thoms
> Sent: Donnerstag, 26. August 2010 16:40
> To: statalist@hsphsun2.harvard.edu
> Subject: st: nlsur and estout
>
> I am trying to use esttab after nlsur.
>
> nlsure outputs an e(b) matrix that looks like this:
>
> e(b)[1,21]
> b0:         b1:         b2:         b3:         b4:	b5:         b6:
> _cons       _cons       _cons       _cons       _cons    _cons       _cons
> y1   .84215046   .14613943   .00456665  -.00017402   .00006599  -1.640e-06
> -.00006325
>
>
> Now esttab produces a table like this
>
> b0
> _cons     .84215046
> b1
> _cons
> ......
>
>
> thinking that there are 12 (instead of six) parameters/rows. How can I
> work around this?
> I tried using the parameters option for nlsur but I get an error "not
> allowed".
>
> Many thanks,
>
> Thomas
> *
> *   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/


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