cs | R Documentation |
Credible set
cs(tbl, b = "Effect", se = "StdErr", log_p = NULL, cutoff = 0.95)
tbl |
Input data. |
b |
Effect size. |
se |
Standard error. |
log_p |
if not NULL it will be used to derive z-statistic |
cutoff |
Threshold for inclusion. |
The function implements credible set as in fine-mapping.
Credible set.
## Not run:
\preformatted{
zcat METAL/4E.BP1-1.tbl.gz | \
awk 'NR==1 || ($1==4 && $2 >= 187158034 - 1e6 && $2 < 187158034 + 1e6)' > 4E.BP1.z
}
tbl <- within(read.delim("4E.BP1.z"),{logp <- logp(Effect/StdErr)})
z <- cs(tbl)
l <- cs(tbl,log_p="logp")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.