## Not run:
# data(binned_zmat)
# data(Pi)
#
# # Fdr calculation:
# output3 <- repfdr(pbz, bz, "replication",Pi.previous.result = Pi)
#
# BayesFdr <- output3$mat[,"Fdr"]
# sum(BayesFdr <= 0.05)
#
# # The posterior probabilities for the the first five features with Bayes FDR at most 0.05:
# post <- ldr(pbz,bz[which(BayesFdr <= 0.05)[1:5],],Pi)
# round(post,4)
#
# # posteriors for a subset of the association status vectors can also be reported,
# # here the subset is the four first association status vectors:
# post <- ldr(pbz,bz[which(BayesFdr <= 0.05)[1:5],],Pi,h.vecs= 1:4)
# round(post,4)
# ## End(Not run)
Run the code above in your browser using DataLab