[R] Newbie Question: Shifted Power Fit?

Douglas Bates bates at stat.wisc.edu
Thu Aug 16 16:57:54 CEST 2001


Douglas Bates <bates at cs.wisc.edu> writes:

> Trying to evaluate the exponential of a negative number?  Think of how
> the expression (x-b)^c for non-integer c is evaluated when x = 3 and b
> = 3 - eps. 
    ^^^^^^^  Should be 3 + eps.  

The error occurs when using finite differences to evaluate the partial
derivative with respect to b.  If b = 3 + eps and x = 3 then (x-b)
is negative and (x-b)^pow returns NA.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list