Bookmark and Share

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]

Re: st: RE: nlsur and estout - solved


From   Thomas <[email protected]>
To   [email protected]
Subject   Re: st: RE: nlsur and estout - solved
Date   Fri, 27 Aug 2010 17:32:00 +0100

matrix beta = nullmat(beta) \ e(b)
    matrix beta = beta[1, 1..28]
    matrix colnames beta = _:
    matrix colnames beta = `names'
    estadd matrix beta



On 27/08/2010 16:56, Thoms wrote:
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: [email protected]
[mailto:[email protected]] On Behalf Of Thoms
Sent: Freitag, 27. August 2010 12:38
To: [email protected]
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: [email protected]
[mailto:[email protected]] On Behalf Of Thoms
Sent: Donnerstag, 26. August 2010 16:40
To: [email protected]
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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index