R library for the delta method with numerical derivatives