A Collection of Efficient and Extremely Fast R Functions
MLE of (hyper-)spherical distributions
Insert/remove function names in/from the NAMESPACE file
Simple linear regressions coefficients
Matrix with all pairs of t-tests
Analysis of covariance
Many ANCOVAs
Significance testing for the coefficients of Quasi binomial or the qua...
ANOVA for two quasi Poisson regression models
Apply to each column a method under condition
Estimation of an AR(1) model
Convert R function to the Rfast's coresponding
Estimation of the Box-Cox transformation
MLE of distributions defined in the (0, 1) interval
BIC (using partial correlation) forward regression
BIC forward regression with generalised linear models
Binary search algorithm
Bootstrap t-test for 2 independent samples
Backward selection regression
Fitted probabilities of the Terry-Bradley model
Many one sample goodness of fit tests for categorical data
Search for variables with zero range in a matrix
Check Namespace and Rd files
Cholesky decomposition of a square matrix
Circular-linear correlation
Coefficient matrices
Column-wise Yule's Y (coefficient of colligation)
Many Welch's F-tests
Column and row-wise Any
Many area under the curve values
Colum-wise cumulative operations (sum, prod, min, max)
Column and row wise coefficients of variation
Column-wise differences
Column-wise kurtosis and skewness coefficients
Column and row-wise means of a matrix
Column-wise minimum and maximum of a matrix
Column-wise MLE of some univariate distributions
Many tests for the dispersion parameter in Poisson distribution
Many ANOVAS for count data with Poisson or quasi Poisson models
Column and row-wise products
Column and row-wise range of values of a matrix
Many random intercepts LMMs for balanced data with a single identical ...
Check if any column or row is fill with values
Column and row-wise Shuffle
Column and row-wise sums of a matrix
Column and row-wise tabulate
Column-wise true/false value of a matrix
Get specific columns/rows fo a matrix
Many moment and maximum likelihood estimations of variance components
Column and row-wise variances and standard deviations of a matrix
Column-wise uniformity tests for circular data
All k possible combinations from n elements
FBED variable selection method using the correlation
Correlation based forward regression
Correlation between pairs of variables
Correlation between a vector and a set of variables
Row - Wise matrix/vector count the frequency of a value
Fast covariance and correlation matrix calculation
Cox confidence interval for the ratio of two Poisson variables
Convert a dataframe to matrix
Hypothesis test for the distance correlation
Distance variance, covariance and correlation
Design Matrix
Diagonal Matrix
Fitting a Dirichlet distribution via Newton-Rapshon
Cross-Validation for the k-NN algorithm using the arc cosinus distance
k-NN algorithm using the arc cosinus distance
Distance matrix - Sum of all pairwise distances in a distance matrix
Distance between vectors and a matrix - Sum of all pairwise distances ...
Density of the multivariate normal and t distributions
Energy distance between matrices
Empirical and exponential empirical likelihood tests for one sample
Empirical and exponential empirical likelihood tests for two samples
Limited number of eigenvalues and eigenvectors of a symmetric matrix
Deep copy
Exact t-test for 2 independent samples
Many exponential regressions
Hypothesis test for von Mises-Fisher distribution over Kent distributi...
Floyd-Warshall algorithm for shortest paths in a directed graph
Minimum and maximum frequencies of a vector
Variable selection in generalised linear regression models with forwar...
Multi-sample tests for vectors
Many multi-sample tests
Matrix with G-square tests of indepdence
G-square test of conditional indepdence
Many G-square tests of indepedence
MLE of continuous univariate distributions defined on the positive lin...
Gamma regression with a log-link
Naive Bayes classifiers
Prediction with some naive Bayes classifiers
Chi-square and G-square tests of (unconditional) indepdence
Many simple geometric regressions
One and many Gini coefficients
Logistic and Poisson regression models
Some summary statistics of a vector for each level of a grouping varia...
Find the given value in a hash table
Hash - Pair function
Hash object
Hash object to a list object
Eigenvalues in high dimensional principal component analysis
MLE of the inverted Dirichlet distribution
Inverese Gaussian regression with a log-link
Find element
Check if values are integers and convert to integer
Check whether a square matrix is symmetric
Iterator
James multivariate version of the t-test
Cross-Validation for the k-NN algorithm
k nearest neighbours algorithm (k-NN)
Many multi-sample tests
Uniformity tests for circular data
Natural logarithm of the beta function
Binomial coefficient and its logarithm
Natural logarithm of the gamma function and its derivatives
Many F-tests with really huge matrices
Linear models for large scale data
Natural Logarithm each element of a matrix
Many univariate simple binary logistic regressions
Logistic or Poisson regression with a single categorical predictor
Lower and Upper triangular of a matrix
Column and row-wise mean absolute deviations
Mahalanobis distance
Number of equal columns between two matrices
Matrix multiplication, Cross and Tcross product
Column-wise matching coefficients
Match
Generates random values from a normal and puts them in a matrix
Column and row-wise medians of a matrix or median of a vector
Fast calculation of the spherical and hyperspherical median
Minimum and maximum of a vector
MLE for multivariate discrete data
Multinomial regression
Many simple multinomial regressions
Exponential empirical likelihood for a one sample mean vector hypothes...
Exponential empirical likelihood hypothesis testing for two mean vecto...
Many multivariate simple linear regressions coefficients
Multivariate kurtosis
MLE of the multivariate (log-) normal distribution
MLE of the multivariate t distribution
Apply method to Positive and Negative number
Norm of a matrix
MLE of continuous univariate distributions defined on the real line
Gaussian regression with a log-link
Many simple regressions for positive valued data
Column and row-wise nth smallest value of a matrix/vector
Odds ratio and relative risk
Many odds ratio tests
Orthogonal matching pursuit variable selection
Column and row-wise Order - Sort Indices
MLE of the ordinal model without covariates
Outer function
The skeleton of a Bayesian network produced by the PC algorithm
Partial distance correlation
Hypothesis test for two means of percentages
Many hypothesis tests for two means of percentages
Permutation based p-value for the Pearson correlation coefficient
Permutation
Minima and maxima of two vectors/matrices and Column-row wise minima a...
Tests for the dispersion parameter in Poisson distribution
Analysis of variance with a count variable
Many analysis of variance tests with a discrete variable
Polyserial correlation
Pooled covariance matrix
Quasi binomial regression for proportions
Many 2 sample proportions tests
Quasi Poisson regression
Many univariate simple poisson regressions
Angular central Gaussian random values simulation
Column and row-wise ranks
Simulating from a Bingham distribution
Simulation of random values from a Bingham distribution with any symme...
Reading the files of a directory
Many univariate simple linear regressions
Replicate columns/rows
utils::packageDescription("Rfast")[["Title"]]
Random intercepts linear mixed models
Many simple linear mixed model regressions
Repeated measures anova
Many regression based tests for single sample repeated measures
High dimensional MCD based detection of outliers
Multivariate Laplace random values simulation
Multivariate normal and t random values simulation
Simulation of random values from a normal distribution
Round each element of a matrix/vector
Row-wise minimum and maximum of a matrix
Row-wise true value of a matrix
Random values simulation from a von Mises-Fisher distribution
Random values simulation from a von Mises distribution
Many score based regressions
Many Shapiro-Francia normality tests
Skewness and kurtosis coefficients
Hypothesis testing between two skewness or kurtosis coefficients
Sorting of the columns-rows of a matrix
Sort and unique
Sort - Integer Sort - Sort a vector coresponding to another
Source many R files
Spatial median for Euclidean data
Spatial median regression
Inverse of a symmetric positive definite matrix
Circular or angular regression(s)
Vector allocation in a symmetric matrix
Spatial sign covariance matrix
Represantation of Stack
Standardisation
Sub-matrix
Table Creation - Frequency of each value
MLE of the tobit model
Topological sort of a DAG
Transpose of a matrix
Many one sample tests
One sample t-test for a vector
Many 2 sample tests tests
Many two-way ANOVAs
Fast and general represantation of a factor variable
Many univariate generalised linear regressions
Variance (and standard deviation) of a vector
Moment and maximum likelihood estimation of variance components
MLE of some circular distributions
Weibull regression model
Index of the columns of a data.frame which are a specific type
Operations between two matrices or matrix and vector
Yule's Y (coefficient of colligation)
MLE of count data
A collection of fast (utility) functions for data analysis. Column and row wise means, medians, variances, minimums, maximums, many t, F and G-square tests, many regressions (normal, logistic, Poisson), are some of the many fast functions. References: a) Tsagris M., Papadakis M. (2018). Taking R to its limits: 70+ tips. PeerJ Preprints 6:e26605v1 <doi:10.7287/peerj.preprints.26605v1>. b) Tsagris M. and Papadakis M. (2018). Forward regression in R: from the extreme slow to the extreme fast. Journal of Data Science, 16(4): 771--780. <doi:10.6339/JDS.201810_16(4).00006>. c) Chatzipantsiou C., Dimitriadis M., Papadakis M. and Tsagris M. (2020). Extremely Efficient Permutation and Bootstrap Hypothesis Tests Using Hypothesis Tests Using R. Journal of Modern Applied Statistical Methods, 18(2), eP2898. <doi:10.48550/arXiv.1806.10947>. d) Tsagris M., Papadakis M., Alenazi A. and Alzeley O. (2024). Computationally Efficient Outlier Detection for High-Dimensional Data Using the MDP Algorithm. Computation, 12(9): 185. <doi:10.3390/computation12090185>. e) Tsagris M. and Papadakis M. (2025). Fast and light-weight energy statistics using the R package Rfast. <doi:10.48550/arXiv.2501.02849>.