conroylau / lpinfer

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

Set up unit tests for fsst #37

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago

We want to ensure that errors like #36 do not happen. The easiest way to do that is to make sure the code passes the unit tests before pushing.

conroylau commented 4 years ago

Done! I have added unit tests for fsst which checks the output when lambda a scalar or a vector. It first checks the output when beta.obs is a function. Then it takes the bootstrap betas returned, set them as a list and pass these bootstrap betas to the procedure again to ensure that the same p-values are obtained. Thanks!