[R] Derivative of a function
Lisa
lisajca at gmail.com
Wed Jun 29 04:03:56 CEST 2011
Dear all,
I just want to get the derivative of a function that looks like:
y = exp(x1*b) / (exp(x1*b) + exp(x2*b))
where y is a scalar, x1, x2, and b are vectors. I am going to take the
derivative of b with respect to y, but I cannot derive an expression in
which b is function of y. I know there is another way to get the similar
result, i.e., first take the derivative of y with respect to each element of
b, and then take its reciprocal. But it is not what I want. Could someone
please tell me how to solve this problem? Thank you in advance.
Lisa
--
View this message in context: http://r.789695.n4.nabble.com/Derivative-of-a-function-tp3631814p3631814.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list