[R] Partial Derivatives in R

Ravi Varadhan rvaradhan at jhmi.edu
Sun May 10 23:05:41 CEST 2009


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: rvaradhan at jhmi.edu


----- Original Message -----
From: Paul Heinrich Dietrich <paul.heinrich.dietrich at gmail.com>
Date: Sunday, May 10, 2009 4:45 pm
Subject: [R]  Partial Derivatives in R
To: r-help at 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 at r-project.org mailing list
>  
>  PLEASE do read the posting guide 
>  and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list