Statalist


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

Re: st: question


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: question
Date   Tue, 3 Nov 2009 23:51:05 +0000 (GMT)

Having re-read your question I am guessing that you are dealing with
the following problem: You estimated a linear regression on an explained
variable that has been log-transformed and you are trying to get 
predictions and standard errors in the original non-transformed metric.
If that is the case than there is a much simpler and much more elegant 
solution to that problem. 

The problem is that  

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


--- On Tue, 3/11/09, Tunga Kantarci <tungakantarci@hotmail.com> wrote:

> From: Tunga Kantarci <tungakantarci@hotmail.com>
> Subject: st: question
> To: statalist@hsphsun2.harvard.edu
> Date: Tuesday, 3 November, 2009, 1:38 PM
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index