Statalist


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

st: AW: question


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: question
Date   Tue, 3 Nov 2009 14:54:49 +0100

<> 

You can always have -display- show the relevant estimates, but you won`t get
a standard error then:


*************
sysuse auto, clear
reg mpg weight length
di exp(_b[_cons]+_b[length]*15.3) /* 
*/ *exp(e(rss)/e(df_r)/2)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Tunga Kantarci
Gesendet: Dienstag, 3. November 2009 14:38
An: [email protected]
Betreff: st: question

Hello,

I wish to calculate a figure where I call coefficient estimates and
residuals sum of squares and degrees of freedom. All these quantities are
from the stata estimation output. When I run the relevant command "nlcom
exp(_b[_cons]+_b[income]*15.3)*exp(e(rss)/e(df_r)/2)" I get the error "could
not calculate numerical derivative". This is perhaps because e(rss) and
e(df_r) are not estimates. (As Maarten pointed out yesterday actually)

1. Does this mean that in the nlcom command I am only allowed to specify
coefficient estimates? 
2. How can I achieve what I want to achieve: I wish to call figures into the
stated command I am running. 

Thanks in advance. 


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index