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

Problem with certain variables in estimateEffects() with means.as.cutpoints=F #39

Open
nielsenrich opened this issue Jun 3, 2020 · 1 comment

Comments

@nielsenrich
Copy link
Collaborator

In replicated my aid shocks paper, I found that the variable "lassassinbanks" (and several others) fails in the cutpoints function for the athey-imbens intervals because the segmented regression uses the median of the variable as a starting psi, but the median is zero and it's "out of range."

@nielsenrich
Copy link
Collaborator Author

Slightly more detail from my notes: "the function getCutpoint.R breaks on variables like "lassassinbanks" which is mostly zeros. Says "starting psi is out of range" in the segmented() command.
It works if I set a value higher than 0 but less than 2. It works very quickly with 1. Not quickly with the variable mean.
With the variable mean (.14) it doesn't converge:

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

1 participant