I just created my very first package and ran into issues trying to make it work on Virtual Machines.
I use this code to install dependencies and open the package, but the main function of the package doesn't work:
lalonde_ctrl <- read.dta("http://www.nber.org/~rdehejia/data/psid_controls.dta")
lalonde_exp <- read.dta("http://www.nber.org/~rdehejia/data/nsw_dw.dta")
lalonde_trt <- lalonde_exp[which(lalonde_exp$treat == 1), ]
lalonde <- rbind(lalonde_trt,lalonde_ctrl)
X <- cbind(lalonde$age, lalonde$re74, lalonde$re75, lalonde$education, lalonde$nodegree, lalonde$married,lalonde$black,lalonde$hispanic)
Tr <- lalonde$treat
Y <- lalonde$re78
nm_lalonde = ExpoMatch_function(Tr = Tr, X = X,pop.size = 80, max.generations = 15)
I have seen a similar topic that was solved 2 years but no suggested solutions fixed my issue.
Any help would be greatly appreciated