stephenslab / susieR

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

Potentially decreasing ELBO due to check with zero when prior variances are estimated #101

Closed gaow closed 4 years ago

gaow commented 4 years ago

Currently at the end of an estimate for prior variance in each SER, we compare the loglik of the estimate vs that from setting prior to zero. We will use the zero variance estimate instead unless the estimated (non-zero) variance achieves an obviously better likelihood: that is, in our current code, 1.1 times the likelihood from zero variance. See this line where check_null_tol on the log scale was set to 0.1 . This allows us to be a bit more stringent about detecting additional effects.

There is a potential issue with it: since we allow for certain tolerance like this, the new prior estimate might no longer maximizing the ELBO. As a result ELBO might decrease.

gaow commented 4 years ago

Added a parameter check_null_threshold to all main interfaces and set default to zero.