[R] "deriv" and chain rule and matrix derivatives

About this list Date view Thread view Subject view Author view Attachment view

From: Ahmad_Abu_Hammour/STUDENTS/FIRE%FIRE@fordham.edu
Date: Sun 23 Feb 2003 - 03:26:27 EST


Message-id: <OF968F2309.8F73A3F0-ON85256CD5.005A500F-85256CD5.005A5031@fire.fordham.edu>

Hi,
Anybody knows if I can use "deriv" to implement CHAIN RULE AND MATRIX
derivation.
Simple examples:

y=expression(log(x))
z=expression (x*y)
deriv(z,"x") # chain rule

f=expression(det(x)) # where x is an (nxn) matrix
deriv(f, "x")

Is there any way to work around this?

Thank you very much.

Ahmad Abu Hammour

PS. by the way I tried to send the same email using my http-based account
hammour@msn.com, but I could not, although I set send email to plain text.

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:23 EST