Skip to content
Prev 31206 / 398506 Next

AW: [R] numericDeriv and ecdf

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
Also, the call must be wrong, try this:
[1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
attr(,"gradient")
          [,1]
 [1,] -6710886
 [2,] -6710886
 [3,] -6710886
 [4,] -6710886
 [5,] -6710886
 [6,] -6710886
 [7,] -6710886
 [8,] -6710886
 [9,] -6710886
[10,] -6710886

whereas e(x+z) gives you all zeroes. (An option for deciding between
left-sided, right-sided, and central derivates could be a nice
extension, BTW).