Skip to content

dualr 0.1.0

Choose a tag to compare

@queelius queelius released this 31 Jan 18:20
· 9 commits to main since this release

dualr 0.1.0 — Initial Release

Forward-mode automatic differentiation via dual numbers for R.

Features

  • S4 dual number class with full arithmetic and math function support
  • Nested duals for exact second-order derivatives (dual2_variable, differentiate2)
  • MLE workflow helpers: score, hessian, observed_information, score_and_hessian
  • Special functions: erf, erfc, beta, lbeta, psigamma
  • Four vignettes with interpretive statistical commentary:
    • Introduction to dualr
    • MLE Workflow (Normal, Poisson, Gamma, Logistic regression)
    • Higher-Order Derivatives (curvature, Taylor expansion)
    • Optimizer Integration (optim, nlminb)

Install

# From CRAN (when available)
install.packages("dualr")

# From GitHub
remotes::install_github("queelius/dualr")

Documentation

Full pkgdown site: https://queelius.github.io/dualr/