|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: question
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 <[email protected]> wrote:
> From: Tunga Kantarci <[email protected]>
> Subject: st: question
> To: [email protected]
> 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/