Re: [R] numerical derivative R help

2010-07-07 Thread Setlhare Lekgatlhamang
Which package are you using? -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Parminder Mankoo Sent: Tuesday, July 06, 2010 10:50 PM To: r-help@r-project.org Subject: [R] numerical derivative R help Importance: Low I fit my CDF to

Re: [R] numerical derivative R help

2010-07-06 Thread Ravi Varadhan
Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: Parminder Mankoo Date: Tuesday, July 6, 2010 7:03 pm Subject: [R] numeric

[R] numerical derivative R help

2010-07-06 Thread Parminder Mankoo
I fit my CDF to sum of exponentials and now I want to take the numerical derivative of this function to obtain probability density.I will really appreciate your help reagrding the error messages I am getting which I don't understand. * * > fitterma <- function(xtime) { a <- -0.09144115 b <- -0.