acoppock / ri2

Randomization Inference for Randomized Experiments
Other
12 stars 4 forks source link

Error in x[[3]] : subscript out of bounds #23

Closed jwbowers closed 5 years ago

jwbowers commented 5 years ago

Found this error both in the CRAN and development version of ri2.

 table_2.2 <-    data.frame(d = c(1, 0, 0, 0, 0, 0, 1),
                y = c(15, 15, 20, 20, 10, 15, 30))

declaration <- declare_ra(N = 7, m = 2)
out <- conduct_ri(y ~ d,
                   declaration = declaration,
                   assignment = "d",
                   sharp_hypothesis = 0,
                   data = table_2.2)

Produces the following in the lastest RStudio.

Error in x[[3]] : subscript out of bounds
jwbowers commented 5 years ago

No. It doesn't. Something else is going on in Rstudio. (The error went away after I restarted RStudio and tested with Nvim-R and plain console R). Closing this. Sorry.