xuyiqing / tjbal

Trajectory Balancing
MIT License
11 stars 10 forks source link

Error in { : task 11 failed - "replacement has length zero" #5

Open syedishraqueosman opened 5 years ago

syedishraqueosman commented 5 years ago

Hi, When I am calling tjbal, I am getting the following error message. Can you please help me debugging this?The code runs for the same dataset but with more ids ("regionnames" here). I had to do another analysis on the same data removing some ids and it throws the following error(I tried different combination of the matching variables also):

Seek balance on:

cr_nonvio2008, cr_nonvio2009, cr_nonvio2010, unrate, ptcpn

Optimization:

[1] "Trying 1 dims of K; distance at 0.73107" [1] "Trying 6 dims of K; distance at 999" sigma* = 5; L1.ratio% = 99.959; num.dims = 1

Bootstrapping...Parallel computing...Error in { : task 11 failed - "replacement has length zero"

I am running the following code: out.mbal <- tjbal(cr_nonvio ~ D+unrate+ptcpn, data = turk_merge, index = c("regionname","year"), kernel = TRUE, demean = FALSE, bootstrap = TRUE, nboots =200,kbal.step = 5)

Thanks in advance! Syed