conroylau / lpinfer

lpinfer: An R Package for Inference in Linear Programs
GNU General Public License v3.0
3 stars 5 forks source link

DKQS tau checking #58

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago

This should yield an error message:

r <- dkqs(data, lpm, .3, tau = c("hello", "goodbye"), solver = "GUROBI")  # ok
print(r)

Instead it yields

     tau    p-value
       1       0.63
 goodbye infeasible
   hello infeasible
conroylau commented 4 years ago

Sorry for the bug, I just fixed it and it should give an error message as follows:

Error: The class of the variable 'tau' has to be numeric.

Thanks!