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 at the end of May, 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   Thoms <tpt21@cam.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: nlsur and estout
Date   Fri, 27 Aug 2010 16:56:13 +0100

Thanks again. But I am afraid it still does not work. I will try to explain better.

esttab, noeqlines

produces:

...
\toprule\endfirsthead\midrule\endhead\midrule\endfoot\endlastfoot
&\multicolumn{1}{c}{(1)}\\
&\multicolumn{1}{c}{All types}\\
\midrule
b0 & \\
\_cons & 0.862\sym{***}\\
& (202.33) \\
\addlinespace
b1 & \\
\_cons & 0.136\sym{***}\\
& (73.92) \\
...

I can kill the _cons with the substitute option but I need to get rid of the b* lines. Also the coeflabels option
does not work because every coefficient is labelled the same (i.e. _cons).

Many thanks,


Thomas


On 27/08/2010 15:19, Martin Weiss wrote:
<>

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/


*
*   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