0

I am trying to use some very simple data in rdplot but I keep getting the error: Error in seq.default(x_min, c, jump_l) : invalid '(to - from)/by' I found this response from a diffrent post on Stack Overflow but can seem to apply the fix to the rdplot function. does anyone know how can this be fixed? The actual code I am using is:

library(rdrobust)

rdplot(y = dt$treated, x = dt$score)

Reproducibility: Here is a sample of my data, as I've said it is fairly common data. So far I have found a couple of things:

  1. There are multiple subsets of the observations that seem to cause problems

  2. Changing the nbins or binselect arguments from their default will fix the problem

  3. The first time you get an error is on the set 1:1463, however using only observations 2:1464 is OK.

cach dies
  • 331
  • 1
  • 14
  • It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input that can be used to test and verify possible solutions. – MrFlick Oct 20 '20 at 20:58
  • 1
    @MrFlick, thanks I have included a sample of my data. As I said its fairly simple data so I don't know why I am getting this error. – cach dies Oct 20 '20 at 22:07

1 Answers1

1

The recent rdrobust version 1.0.1 should take care of this error.