Open jtorcasso opened 2 years ago
Is the panel balanced? I.e. Do you have measured outcomes for all units at all times? If not, that might be what's causing this.
I had the same problem. It was fixed by ensuring I had a balanced panel. It would be nice to have a pre-processing check for panel balance.
I get a
subscript out of bounds
error when I restrict totime_cohort = T
:The error occurs in
multisynth_qp
, in the following block:If I print the dimension of mask and donors, I get (21, 38) and (17,), respectively. So obviously, there will be no data for j=18,..,21 in donors, and this is why we get an indexing error. If I look more closely at mask, there are four rows with NAs (in just the last 6 columns). When I set
time_cohort=F
, the dimensions are (1580, 38) and (1580,), and we don't have this issue, however, the problem is too large in this case.