Open vplagnol opened 5 years ago
As an update simply commenting this line
##if(!missing(usepointmass)){stop("cannot supply both g and usepointmass")}
allows the code to run but I still get lfsr close to 1, which I think should not be happening if the point mass on 0 is not used.
So while the modified code runs, I suspect the usepointmass
behaviour is actually not happening.
@vplagnol sorry see the patch above -- would you test again? It should have fixed it.
Thanks @gaow . This indeed makes the code run, so many thanks for this.
Now does mashr do what I thought it would? Not sure. I have:
get_fitted_g(m)$usepointmass
[1] FALSE
And I run:
m2 = mash(full_data_mash,
g=get_fitted_g(m),
fixg=TRUE)
I still see very high values for lfsr:
table( get_lfsr(m2)[,1] > 0.8)
FALSE TRUE
164 836
I thought that such lfsr would be bound to 0.5 in the absence of a point mass. And similarly, the posterior means are still very much shrunk to 0.
I thought that not using the point mass would change that behaviour?
It may be a different issue to raise, or me not understanding how the model works. But I am not sure I am really running mash without a point mass.
What is g$grid?
I wonder if it includes a zero anyway...?
On Wed, Apr 24, 2019, 22:21 Vincent Plagnol notifications@github.com wrote:
Thanks @gaow https://github.com/gaow . This indeed makes the code run, so many thanks for this.
Now does mashr do what I thought it would? Not sure. I have:
get_fitted_g(m)$usepointmass [1] FALSE
And I run:
m2 = mash(full_data_mash, g=get_fitted_g(m), fixg=TRUE)
I still see very high values for lfsr:
table( get_lfsr(m2)[,1] > 0.8)
FALSE TRUE 164 836
I thought that such lfsr would be bound to 0.5 in the absence of a point mass. And similarly, the posterior means are still very much shrunk to 0.
I thought that not using the point mass would change that behaviour?
It may be a different issue to raise, or me not understanding how the model works. But I am not sure I am really running mash without a point mass.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stephenslab/mashr/issues/62#issuecomment-486523521, or mute the thread https://github.com/notifications/unsubscribe-auth/AANXRRIQNBBEHRQAPSR66D3PSE5VVANCNFSM4HIH4CTA .
I am trying to use the
usepointmass = FALSE
option in mashr. Following the vignette using training/test datasets, I seeSo far so good. But... my next call is:
The issue being the 955/954 discrepancy. But I cannot specify
usepointmass = FALSE
and a fixed g either:It seems to me something is off in the code? It may be an easy fix.