A set of miscellaneous functions that I have used in various projects and in other R packages. Some of the most important are:
get_roc_stats()
: the ROC statistics the way you want it!pr.test()
: compare two PR curves (AUCs) and get a p-value!partial_permut()
: get a partially-scrambled vector (you choose how much!)normalize_to_range()
: normalize a vector to a specified rangedec_to_bin()
: convert a decimal (base-10) number to its binary representationget_percentage_of_matches()
: find the percentage of common elements between two vectorsoutersect()
: find the non-common elements between two vectors (outer-section!)colors.100
: a vector of 100 as much as possible distinct colorsCRAN version:
install.packages("usefun")
Development version:
devtools::install_github("bblodfon/usefun")
See examples in the functions documentation and in the respective tests. For a full biomarker analysis that uses various functions from this package, see this report.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.