Returns the numerical partial derivative of y wrt x for a point of interest.
References
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" (ISBN: 1490523995)
Vinod, H. and Viole, F. (2017) "Nonparametric Regression Using Clusters" doi:10.1007/s10614-017-9713-5
Examples
if (FALSE) { # \dontrun{
x <- seq(0, 2 * pi, pi / 100) ; y <- sin(x)
dy.dx(x, y, eval.point = 1.75)
# First derivative
dy.dx(x, y, eval.point = 1.75)[ , first.derivative]
# Second derivative
dy.dx(x, y, eval.point = 1.75)[ , second.derivative]
# Vector of derivatives
dy.dx(x, y, eval.point = c(1.75, 2.5))
} # }