If you want `numerical' partial derivatives, check out: require(numDeriv) ?grad
Ravi. ____________________________________________________________________ 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: Paul Heinrich Dietrich <paul.heinrich.dietr...@gmail.com> Date: Sunday, May 10, 2009 4:45 pm Subject: [R] Partial Derivatives in R To: r-help@r-project.org > Quick question: > > Which function do you use to calculate partial derivatives from a model > equation? > > I've looked at deriv(), but think it gives derivatives, not partial > derivatives. Of course my equation isn't this simple, but as an example, > I'm looking for something that let's you control whether it's a > partial or > not, such as: > > somefunction(y~a+bx, with respect to x, partial=TRUE) > > Is there anything like this in R? > -- > View this message in context: > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > > PLEASE do read the posting guide > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.