[Rd] extending the derivs table/fools rushing in

From: Ben Bolker <bolker_at_zoology.ufl.edu>
Date: Thu, 14 Aug 2008 12:47:45 -0400

  I added "plogis" to the derivative table in the development version of R; the patch against yesterday's R-devel src/deriv/main.c is available at http://www.zoology.ufl.edu/bolker/deriv_patch.txt .

  I pretty much followed the framework of the other symbols; here was my incantation

It seems to work:
> D(quote(plogis(a)),"a")
exp(-a) * (1 + exp(-a))^-2
> D(quote(plogis(a+b*x)),"x")
exp(-(a + b * x)) * (1 + exp(-(a + b * x)))^-2 * b

  Any thoughts? I'm sure there's a cleverer way to do this ...

  Ben Bolker

  PS I get a minor build error at the end of the compilation (on Ubuntu 8.10):

make[2]: *** No rule to make target `VR.ts', needed by `stamp-recommended'. Stop.
make[2]: Leaving directory
`/usr/local/src/R/R-devel/src/library/Recommended' make[1]: *** [recommended-packages] Error 2 make[1]: Leaving directory
`/usr/local/src/R/R-devel/src/library/Recommended' make: *** [stamp-recommended] Error 2

  ... don't know if that is important or not.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 14 Aug 2008 - 16:50:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Aug 2008 - 19:36:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive