bschilder / ThreeWayTest

Summary statistics-based association test for identifying the pleiotropic effects with set of genetic variants
2 stars 1 forks source link

`new_method`: `p_1`,`p_2` variable undefined #10

Closed bschilder closed 1 year ago

bschilder commented 1 year ago

Here, the variables p_1 and p_2 are not defined within the scope of the function. This means that the function will fail if these are not defined as global variables in your environment. The correct way to do this is to pass these variables to the function via an argument, or to compute them within the function.

https://github.com/bschilder/ThreeWayTest/blob/a4c61c94ed339778355ffe0f406849bf54f1da22/R/functions.R#L332

bschilder commented 1 year ago

I believe the new_method function has since been rename TWT, and this issue is now resolved.