Skip to content
Prev 179864 / 398502 Next

Partial Derivatives in R

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?