Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check get_loglik output #17

Open
stephens999 opened this issue Jun 12, 2014 · 2 comments
Open

check get_loglik output #17

stephens999 opened this issue Jun 12, 2014 · 2 comments

Comments

@stephens999
Copy link
Owner

it seems that get_loglik returns penalized likelihood when prior is specified. check if this is desired behaviour.

@esterpantaleo
Copy link
Collaborator

ash does not return logLR i.e. if res=ash(...), there is no res$logLR
I have data where this happens:
load("/mnt/lustre/home/epantaleo/src/multiseq/local/testing.pipeline.RData")
library(multiseq) #pull the most recent version
zdat.ash = ash(zdat[3,ind], zdat[4,ind], prior=prior, multiseqoutput=TRUE, pointmass=pointmass, nullcheck=nullcheck, gridmult=gridmult, mixsd=mixsd, VB=VB, onlylogLR=onlylogLR, g=set.fitted.g[[j]])
zdat.ash$logLR
while (using the same loaded data) ash returns logLR:
zdat.rate.ash = ash(zdat.rate[3], zdat.rate[4], prior=prior, pointmass=pointmass, nullcheck=nullcheck, gridmult=gridmult, mixsd=mixsd, VB=VB, onlylogLR=onlylogLR, g=set.fitted.g[[J+1]])
zdat.rate.ash$logLR

@stephens999
Copy link
Owner Author

This is a problem with Tom's multiseqoutput flag - it doesn't return logLR when that flag is set.

result = list(fitted.g=pi.fit$g,PosteriorMean = PosteriorMean,PosteriorSD=PosteriorSD,call=match.call())
return(result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants