Man pages for pbreheny/breheny
Miscellaneous Functions

alldupShow all duplicate entries in a data frame/table/vector
alphaColTake a solid color and turn it semi-transparent
AttachDetach before attaching
binom_bayesBayesian analysis of one-sample binomial data using conjugate...
BootSimplified interface to boot package for basic statistics
breheny-packagebreheny: Miscellaneous functions that Patrick Breheny finds...
bsaveSave and combine (gather) results from batched R sessions
catchWarningCatch warnings
checkChecks whether two vectors are equal; wrapper for 'all.equal'
checkDataQuick inspection of columns in a data frame / table for...
chisqProbDraw a chi-squared curve and shade area to the right...
chk_manCheck code/documentation agreement using...
cibandAdd a confidence interval band to a KM curve
ci_intConstruct confidence intervals in the presence of...
ci_ipdGiven a confidence interval, simulate individual patient data
ci_plotCreate forest plot of confidence intervals
clipdtImport from clipboard to data.table
colorize_terminalSetup errors and warnings to use cli coloring
contingency_tableFormat a contingency table for use with knitr
cv_treeCross-validation for regression trees
ddiceExact probabilities for sum of n dice
density_plotDensity plot
devloadLoad a package from its dev/ location (from source, not...
dictCreate a key-value dictionary
dnplotDensity plot
dot-fCompact and pipe-friendly wrapper to sprintf
download_dataDownload data and read into R
DropMissDrop missing columns from a data table
epowerPower and sample size for time-to-event data based on...
estimateEstimate linear combinations from a regression model
event_chartCreate a time-to-event chart using ggplot
factor2numConvert factor to number
flowchartCreate a flowchart
format_object_sizeThis is literally copied from utils:::format.object_size
formatPFormat p-values nicely
generic_descriptionCopies a generic DESCRIPTION file to current working...
ggbarQuick wrapper for a gg bar plot
ggboxBoxplot of a data frame / matrix using ggplot
ggcontourWrapper to create geom_contour of a function
gghistSimple interface to ggplot2 histogram
ggmatLine plot of a matrix using ggplot
grayColTake a color and make it duller
hbytesPrint bytes in nice human-readable format
HistNicer-looking histogram
km_to_miConvert between min/km pace and min/mi pace
lfdrPlot.ashMake an lFDR plot for an ash object
likelihood_plotPlot likelihood function
logAxisMake a log-scale axis
make_uniqueEnsure all entries in a string are uniquely labeled
matrix_to_dtConvert matrix to data.table
mixcolorMix two colors
normProbDraw a normal curve and shade area under an interval...
nriskAdd an axis describing number at risk to a KM curve
open_urlOpen a url: quietly, in the background, and in a new window
palGenerate a nice palette of colors
parse_auxParse latex .aux files for fig/tab/etc. numbers
pca_plotMake a PCA/tSNE/UMAP plot
PlotCustomized plotting functions
polygon.stepDraw a filled polygon as a step function
power_hdPower calculator for high-dimensional testing
prankCompute percentile rank
process_yamlSplit a file into yaml and body
qboxBox plot but whiskers show quantiles instead of outliers
qdCompute a quadratic form (x'Ax)
qeSolutions to the quadratic equation
r2Nagelkerke R2
rank_newApply rank transformation to new data
rasymGenerate asymptotic sequence of random normal sums
rbernGenerate random bernoulli (non-homogeneous binomial) variates
rdexGenerate random double exponential variates
rdirGenerate random variates from the Dirichlet distribution
rpowerPower for regression (or any continuous outcome)
rrCalculate relative risk from a 2x2 table
rstringGenerate random string of characters
s3_shareShare Amazon S3 file
samsize_pccSample size for classifier development
scale_revlogProvides a reverse log scale to ggplot; especially useful for...
signed_urlShare Amazon CloudFront file via presigned url
silent_loadRun 'devtools::load_all()' silently
softSoft-thresholding operator
source.dirSource all .R files in a directory
table2dtConvert a table to a (disaggregated) data frame / table
textPlotScatter plot, but with text labels
toplegendMake a legend on top or right side of plot
tpowerPower for t tests, including arbitrary linear hypotheses
write_fwfGenerate fixed width file in R
write_tsvWrite a tab-separated file, rounding floats
xlsdtSimple wrapper to read_excel + pipe to data.table
pbreheny/breheny documentation built on Feb. 18, 2025, 5:07 a.m.