Re: [R] multiply of two expressions

2014-05-06 Thread Ben Bolker
Niloofar.Javanrouh javanrouh_n at yahoo.com writes:  hello, i want to differentiate of L with respect to b when: L= k*ln (k/(k+mu)) + sum(y) * ln (1-(k/mu+k))   #(negative binomial ln likelihood) and ln(mu/(mu+k)) = a+bx   #link function how can i do it in R? thank you.

[R] multiply of two expressions

2014-05-05 Thread Niloofar.Javanrouh
 hello, i want to differentiate of L with respect to b when: L= k*ln (k/(k+mu)) + sum(y) * ln (1-(k/mu+k))   #(negative binomial ln likelihood) and ln(mu/(mu+k)) = a+bx   #link function how can i do it in R? thank you. _ Best Regards Niloofar.Javanrouh Ph.D Student of

Re: [R] multiply of two expressions

2014-05-05 Thread Gabor Grothendieck
On Mon, May 5, 2014 at 9:43 AM, Niloofar.Javanrouh javanrou...@yahoo.com wrote: hello, i want to differentiate of L with respect to b when: L= k*ln (k/(k+mu)) + sum(y) * ln (1-(k/mu+k)) #(negative binomial ln likelihood) and ln(mu/(mu+k)) = a+bx #link function how can i do it in

Re: [R] multiply of two expressions

2014-05-05 Thread David Winsemius
On May 5, 2014, at 6:05 PM, Gabor Grothendieck wrote: On Mon, May 5, 2014 at 9:43 AM, Niloofar.Javanrouh javanrou...@yahoo.com wrote: hello, i want to differentiate of L with respect to b when: L= k*ln (k/(k+mu)) + sum(y) * ln (1-(k/mu+k)) #(negative binomial ln likelihood) and

Re: [R] multiply of two expressions

2014-05-05 Thread Gabor Grothendieck
On Mon, May 5, 2014 at 10:16 PM, David Winsemius dwinsem...@comcast.net wrote: On May 5, 2014, at 6:05 PM, Gabor Grothendieck wrote: On Mon, May 5, 2014 at 9:43 AM, Niloofar.Javanrouh javanrou...@yahoo.com wrote: hello, i want to differentiate of L with respect to b when: L= k*ln