Skip to content

Fix jackknife_se_multi for iterations with truncated matrix length#115

Open
david-loeb wants to merge 1 commit intoebenmichael:masterfrom
david-loeb:jackknife-multi-fix
Open

Fix jackknife_se_multi for iterations with truncated matrix length#115
david-loeb wants to merge 1 commit intoebenmichael:masterfrom
david-loeb:jackknife-multi-fix

Conversation

@david-loeb
Copy link

This is a small fix for a bug I encountered when attempting to use jackknife standard errors with a multisynth object.

Issue: When an earliest-treated unit is dropped in a jackknife iteration, the maximum number of post-treatment periods decreases. This can reduce the number of event-relative time periods for which predict() estimates effects, producing an output matrix with fewer rows than the primary result matrix. Within jackknife_se_multi(), vapply() throws an error because the output matrix dimensions for these iterations do not match the specification.

Fix: I added a block that pads the iteration result matrix if it has fewer rows than the primary result matrix.

Thank you for your work on this great package!

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

Successfully merging this pull request may close these issues.

1 participant