0

I have written a code to calculate effects using Delta method in R
I have a dataframe dpcp with variables x1,x2,x3,x4 and a matrix of 1000 draws from a multivariate normal, m4[1000,4].
This code calculates the effects, but it takes very long to run.
How can I run it faster:
n=nrow(dpcp)
fo...