Skip to content
Prev 138735 / 398503 Next

differentiating a numeric vector

Thanks for all the ideas.  splinefun looks like the simplest way to
achieve what I need:
[1] 9
[1] 6
[1] 2
[1] -3.330669e-16

The fda package has a function bsplineS which does nearly the same
thing, and the SemiPar solution looks good for irregular x and y
values, but the built-in function seems to work for my purposes.