numDeriv: Accurate Numerical Derivatives

This package provide methods for calculating (usually) accurate numerical first and second order derivatives. Accurate calculations are done using Richardson's extrapolation or, when applicable, a complex step derivative is available. A simple difference method is also provided. Simple difference is (usually) less accurate but is much quicker than Richardson's extrapolation and provides a useful cross-check. Methods are provided for real scalar and vector valued functions.

Version: 2012.9-1
Depends: R (≥ 1.8.1)
Published: 2012-10-14
Author: Paul Gilbert and Ravi Varadhan
Maintainer: Paul Gilbert <pgilbert.ttv9z at>
License: GPL-2
Copyright: 2006-2011, Bank of Canada. 2012, Paul Gilbert
URL: http:
NeedsCompilation: no
Materials: NEWS
In views: NumericalMathematics
CRAN checks: numDeriv results


Reference manual: numDeriv.pdf
Vignettes: numDeriv Guide
Package source: numDeriv_2012.9-1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X Snow Leopard binaries: r-release: numDeriv_2012.9-1.tgz, r-oldrel: numDeriv_2012.9-1.tgz
OS X Mavericks binaries: r-release: numDeriv_2012.9-1.tgz
Old sources: numDeriv archive

Reverse dependencies:

Reverse depends: alabama, B2Z, catIrt, CBPS, CompLognormal, compound.Cox, copCAR, dhglm, DOBAD, embryogrowth, fdasrvf, fgof, frailtyHL, ghyp, gsg, HPbayes, lmeNB, ltbayes, mederrRank, mgpd, MixGHD, MPTinR, mvglmmRank, mvSLOUCH, optextras, optimx, PKmodelFinder, PSM, QRM, Rcgmin, RCPmod, SemiMarkov, SpeciesMix, SPmlficmcm, ssym, STARSEQ, stremo, turboEM
Reverse imports: antitrust, bbmle, BMhyd, boolean3, CIDnetworks, condGEE, corHMM, DoubleExpSeq, ExtDist, finiteruinprob, flexCWM, GB2, geostatsp, GPvam, lava, lmerTest, marked, metaplus, metRology, mets, midasr, mirt, mpath, nlWaldTest, OUwie, phytools, pi0, Renext, robustvarComp, rugarch, sdprisk, sensR, sn, StableEstim, stochprofML, SurvRegCensCov, vcrpart
Reverse suggests: BB, diversitree, DoseFinding, emdbook, flexsurv, glmx, gof, KFKSDS, metafor, msm, nlmrt, pso, psychomix, ROI, rpf, sna, stsm, stsm.class, surveillance, ucminf