Miscellaneous Esoteric Statistical Scripts
Compute weights for use with adaptive lasso.
Fast addition of vector to each row of matrix
Compute the age of a person from two dates.
Compute the area under the curve for two vectors.
Fast binning of numeric vector into equidistant bins
A table function to use with magrittr pipes
Copy an object as R-code to the clipboard
Correlation matrix distance
Add and set alpha channel for RGB color
Shade an RGB color
Tint an RGB color
Apply cumsum to each column of matrix
Compute a common shared environment matrix
Form row means conditional on number of non-missing
Binning based on cumulative sum with reset above threshold
Fast distance correlation matrix
Fast distance covariance matrix
Drop All Possible Single Terms to a geeglm Model Using Wald or Score T...
Drop All Possible Single Terms to a geem Model Using Wald or Score Tes...
Expand table or matrix to data frame
Compute a common shared environment matrix
Convert factor to numeric vector
Inference for features identified by the Lasso
Fill down NA with the last observed observation
Compute a common shared environment matrix
Fit a generalized estimating equation (GEE) model with fixed additive ...
Goodman-Kruskal's gamma statistic for a two-dimensional table
Show the head and tail of an object
Fast estimation of allele and genotype frequencies under Hardy-Weinber...
Kolmogorov-Smirnov goodness of fit test for cumulative discrete data
Load and extract object from RData file
Split Matrix by Clusters and Return Lower Triangular Parts as Vector
Fast computation of maximum sum subarray
Collection of miscellaneous useful and semi-useful functions
Fast marginal simple regresion analyses
Two-sided table test with fixed margins
Check if unique elements of a vector appear in contiguous clusters
Pairwise Tests for Association/Correlation Between Paired Samples
Compute all pairwise combinations of indices
Compute Schur products (element-wise) of all pairwise combinations of ...
Panel plot of histogram and density curve
Panel plot of R2 values for pairs
Fast computation of several simple linear regressions
Power Calculations for Exact Test of a simple null hypothesis in a Ber...
Power Calculations for Exact and Asymptotic McNemar Test in a 2 by 2 t...
Power Calculations for Two-Sample Test for Proportions with unequal sa...
Power calculations for one and two sample t tests with unequal sample ...
Pretest-posttest RCT for quantitative observations with possible missi...
Fast extraction of matrix diagonal
Quasi Information Criterion
Fast quadratic form computation
Fast replication of a matrix
Plots a standardized residual
Plots a standardized residual
Simulate residual multivariate t-distributed data from a polygenic mod...
Simulate residual multivariate Gaussian data from a polygenic model
Simulate values from a perfect normal distribution
Hanging rootogram for normal distribution
Round vector of number to percentages
Simulate randomized urn design
Internal functions for the MESS package
Screen variable before penalized regression
Segregate genes through a pedigree
Invert a symmetric positive-definite matrix
Fast computation of trace of matrix product
Unbiased standard deviation
Plots a Wally plot
Write a data frame in XML format
A mixed collection of useful and semi-useful diverse statistical functions, some of which may even be referenced in The R Primer book.