Re: [R] multiply of two expressions

2014-05-06 Thread Ben Bolker
Niloofar.Javanrouh 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. >

Re: [R] multiply of two expressions

2014-05-05 Thread Gabor Grothendieck
On Mon, May 5, 2014 at 10:16 PM, David Winsemius wrote: > > On May 5, 2014, at 6:05 PM, Gabor Grothendieck wrote: > >> On Mon, May 5, 2014 at 9:43 AM, Niloofar.Javanrouh >> wrote: >>> >>> >>> hello, >>> i want to differentiate of L with respect to b >>> when: >>> >>> L= k*ln (k/(k+mu)) + sum(y) *

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 > 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 9:43 AM, Niloofar.Javanrouh 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 R? Try th

[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 Bi