powered by
calculates the ratio of two differential according to the value of d.step
dadx(x, a, d.step = 2)
denominator variable for calculating da
numerator variable for calculating dt
step of differentiation
ratio of two differential of the tw0 input variables
# NOT RUN { npoints=100 seed=42 x1=round(runif(npoints,0,1), 2) seed=1234 x2=round(runif(npoints,0,1), 2) xdiff <- dadx(x1,x2) # }
Run the code above in your browser using DataLab