Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in gsynth.default if entire ids and time periods are dropped #67

Open
ruettenauer opened this issue Sep 14, 2021 · 1 comment
Open

Comments

@ruettenauer
Copy link

Hi Yiqing,

Many thanks for the great package first of all!!

I have recently encountered an error in gsynth.default if entire ids and periods need to be dropped. The error results from different dimensions in obs.missing and I.old if periods are dropped. The error message is: Error in obs.missing[, rm.id] <- 4 : incorrect number of subscripts on matrix, but the problem originates from the line above obs.missing[which(I.old == 0)] <- 0 as the two objects have different numbers of rows.

I've edited some basic lines in gsynth.default which circumvent the problem. I'll create a pull request with that in a second, maybe it helps to fix the problem.

Thanks and best wishes
Tobi

@xuyiqing
Copy link
Owner

xuyiqing commented Sep 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants