Re: [R] Derivative of a function

2011-06-29 Thread S Ellison
...@gmail.com] Sent: 29 June 2011 21:35 To: r-help@r-project.org Subject: Re: [R] Derivative of a function Yes. I need to do implicit differentiation. After rearrangement, I got (x2 – x1) * b = log(1 / y - 1) Take derivative of both sides with respect to y, I have (x2 – x1) * b’[y] = - 1/y(1-y) Since both

Re: [R] Derivative of a function

2011-06-29 Thread Gabor Grothendieck
On Wed, Jun 29, 2011 at 4:35 PM, Lisa wrote: > Yes. I need to do implicit differentiation. After rearrangement, I got > > (x2 – x1) * b = log(1 / y - 1) > > Take derivative of both sides with respect to y, I have > > (x2 – x1) * b’[y] = - 1/y(1-y) > > Since both (x2 – x1) and b’[y] are vectors, I

Re: [R] Derivative of a function

2011-06-29 Thread Lisa
Yes. I need to do implicit differentiation. After rearrangement, I got (x2 – x1) * b = log(1 / y - 1) Take derivative of both sides with respect to y, I have (x2 – x1) * b’[y] = - 1/y(1-y) Since both (x2 – x1) and b’[y] are vectors, I cannot move (x2 – x1) to RHS. This is why I posted my quest

Re: [R] Derivative of a function

2011-06-29 Thread Rolf Turner
On 30/06/11 06:16, Gabor Grothendieck wrote: On Tue, Jun 28, 2011 at 10:03 PM, Lisa wrote: 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

Re: [R] Derivative of a function

2011-06-29 Thread Gabor Grothendieck
On Tue, Jun 28, 2011 at 10:03 PM, Lisa wrote: > 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 de

Re: [R] Derivative of a function

2011-06-29 Thread David Winsemius
On Jun 29, 2011, at 10:48 AM, Lisa wrote: This is not a homework. I just want to see if there are some R functions or some ideas I can borrow to solve my problem. There is a deriv function that provides limited support for symbolic differentiation. The Rhelp list is advertised ( http://

Re: [R] Derivative of a function

2011-06-29 Thread Lisa
This is not a homework. I just want to see if there are some R functions or some ideas I can borrow to solve my problem. -- View this message in context: http://r.789695.n4.nabble.com/Derivative-of-a-function-tp3631814p3633071.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Derivative of a function

2011-06-28 Thread Rolf Turner
(1) You really ought to do your own homework. (2) What has this to do with R? cheers, Rolf Turner On 29/06/11 14:03, Lisa wrote: 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

[R] Derivative of a function

2011-06-28 Thread Lisa
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