stephenslab / susieR

R package for "sum of single effects" regression.
https://stephenslab.github.io/susieR
Other
176 stars 46 forks source link

Tolerate NaNs in susie_rss shat #185

Open karenfeng opened 1 year ago

karenfeng commented 1 year ago

I encountered a corner case with susie_rss where if:

An exception is raised. However, in this case, shat is not used downstream and z is calculated and imputed with 0.

In this case, we can avoid raising any exception by providing z=bhat/shat. As a user, it would be ideal if the workaround were provided in the error message, or if an exception could be avoided altogether.

pcarbo commented 1 year ago

Thank you for your feedback @karenfeng. We will leave this Issue open until the problem is addressed.