Miscellaneous Functions for Bioinformatics and Bayesian Statistics
Likelihood function of the James-Stein shrinkage factor.
Identify all duplicates values in a vector.
bayesbio: Miscellaneous functions useful in bioinformatics and Bayesia...
cbind while converting missing entries to NA.
Creates random, unique character strings.
Create a color-labeled horizontal bar plot in ggplot2.
Jaccard index of two character vectors.
Multiple pattern gsub.
Merge data frames based on the nearest datetime differences.
Merge data frames based on the nearest datetime differences and an ID ...
Adjust p-values where n is less than p.
Perform PubMed queries on 2x2 combinations of term vectors.
Add values to the super- and sub-diagonals of a matrix.
Perform James-Stein shrinkage estimation using unequal variances
Weighted shrinkage estimation.
A hodgepodge of hopefully helpful functions. Two of these perform shrinkage estimation: one using a simple weighted method where the user can specify the degree of shrinkage required, and one using James-Stein shrinkage estimation for the case of unequal variances.