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

Ahmad_Abu_Hammour/STUDENTS/FIRE%FIRE@fordham.edu Ahmad_Abu_Hammour/STUDENTS/FIRE%FIRE at fordham.edu
Sat Feb 22 17:27:06 CET 2003


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 at msn.com, but I could not, although I set send email to plain text.




More information about the R-help mailing list