A Collection of Efficient and Extremely Fast R Functions


[Up] [Top]

Documentation for package ‘Rfast’ version 1.8.6

Help Pages

A B C D E F G H I J K L M N O P Q R S T U V W X Z

Rfast-package Really fast R functions

-- A --

acg.mle MLE of (hyper-)spherical distributions
AddToNamespace Insert new function names in the NAMESPACE file
allbetas Simple linear regressions coefficients
allttests Matrix with all pairs of t-tests
all_equals Equality of objects
ancova1 Analysis of covariance
ancovas Many ANCOVAs
anova1 Multi-sample tests for vectors
anovas Many multi-sample tests
anova_propreg Significance testing for the coefficients of Quasi binomial or the quasi Poisson regression
anova_qpois.reg Significance testing for the coefficients of Quasi binomial or the quasi Poisson regression

-- B --

bcdcor Distance correlation
beta.mle MLE of distributions defined in the (0, 1) interval
betaprime.mle MLE of continuous univariate distributions defined on the positive line
bic.corfsreg BIC (using partial correlation) forward regression
bic.fs.reg BIC forward regression with generalised linear models
binary_search Binary search algorithm
bincomb Permutation
binom.mle MLE of count data
block.anova Multi-sample tests for vectors
block.anovas Many multi-sample tests
borel.mle MLE of count data
bs.reg Backward selection regression
btmprobs Fitted probabilities of the Terry-Bradley model

-- C --

cat.goftests Many one sample goodness of fit tests for categorical data
cauchy.mle MLE of continuous univariate distributions defined on the real line
checkAliases Check Namespace and Rd files
checkExamples Check Namespace and Rd files
checkNamespace Check Namespace and Rd files
check_data Search for variables with zero range in a matrix
chisq.mle MLE of continuous univariate distributions defined on the positive line
cholesky Cholesky decomposition of a square matrix
Choose Binomial coefficient and its logarithm
circlin.cor Circular-linear correlation
colAll Column and row-wise Any
colAny Column and row-wise Any
colaucs Many are aunder the curve values
colCountValues Row - Wise matrix/vector count the frequency of a value
colcvs Column and row wise coefficients of variation
coldiffs Column-wise differences
colexp2.mle Column-wise MLE of some univariate distributions
colexpmle Column-wise MLE of some univariate distributions
colFalse Column-wise true value of a matrix
colgammamle Column-wise MLE of some univariate distributions
colgeom.mle MLE for multivariate discrete data
colhameans Column and row-wise means of a matrix
colinvgauss.mle Column-wise MLE of some univariate distributions
colkurtosis Column-wise kurtosis and skewness coefficients
collaplace.mle Column-wise MLE of some univariate distributions
collindley.mle Column-wise MLE of some univariate distributions
colMads Column and row-wise mean absolute deviations
colmaxboltz.mle Column-wise MLE of some univariate distributions
colMaxs Column-wise minimum and maximum of a matrix
colmeans Column and row-wise means of a matrix
colMedians Column and row-wise medians
colMins Column-wise minimum and maximum of a matrix
colMinsMaxs Column-wise minimum and maximum of a matrix
colnormal.mle Column-wise MLE of some univariate distributions
colnth Column and row-wise nth smallest value of a matrix/vector
colOrder Column and row-wise Order - Sort Indices
colpareto.mle Column-wise MLE of some univariate distributions
colpois.mle Column-wise MLE of some univariate distributions
colpois.tests Many tests for the dispersion parameter in Poisson distribution
colpoisdisp.tests Many tests for the dispersion parameter in Poisson distribution
colpoisson.mle MLE for multivariate discrete data
colprods Column and row-wise products
colrange Column and row-wise range of values of a matrix.
colRanks Column and row-wise ranks
colrayleigh.mle Column-wise MLE of some univariate distributions
colrint.regbx Many random intercepts LMMs for balanced data with a single identical covariate
colrow.zero Check if any column or row is fill with zeros
colShuffle Column and row-wise Shuffle
colskewness Column-wise kurtosis and skewness coefficients
colsums Column and row-wise sums of a matrix
colTabulate Column and row-wise tabulate
colTrue Column-wise true value of a matrix
colTrueFalse Column-wise true value of a matrix
colvarcomps.mle Many moment and maximum likelihood estimations of variance components
colvarcomps.mom Many moment and maximum likelihood estimations of variance components
colVars Column and row-wise variances and standard deviations of a matrix
colvm.mle Column-wise MLE of some univariate distributions
colwatsons Column-wise uniformity tests for circular data
colweibull.mle Column-wise MLE of some univariate distributions
comb_n All k possible combinations from n elements
cor.fbed FBED variable selection method using the correlation
cor.fsreg Correlation based forward regression.
cora Fast covariance and correlation matrix calculation
corpairs Correlation between pairs of variables
correls Correlation between a vector and a set of variables
count_value Row - Wise matrix/vector count the frequency of a value
cova Fast covariance and correlation matrix calculation
cqtest Multi-sample tests for vectors
cqtests Many multi-sample tests
ct.mle MLE of continuous univariate distributions defined on the real line

-- D --

data.frame.to_matrix Convert a dataframe to matrix
dcor Distance correlation
dcor.ttest Hypothesis test for the distance correlation
dcov Distance variance and covariance
design_matrix Design Matrix
Diag.fill Diagonal Matrix
Diag.matrix Diagonal Matrix
Digamma Natural logarithm of the gamma function and its derivatives.
diri.nr2 Fitting a Dirichlet distribution via Newton-Rapshon
dirimultinom.mle MLE for multivariate discrete data
dirknn k-NN algorithm using the arc cosinus distance
Dist Distance matrix
dista Distance between vectors and a matrix
dmvnorm Density of the multivariate normal and t distributions
dmvt Density of the multivariate normal and t distributions
dvar Distance variance and covariance

-- E --

eachrow Operations between two matrices
edist Energy distance between matrices
eel.test1 One sample exponential empirical likelihood test
eel.test2 Two sample exponential empirical likelihood test
el.test1 One sample exponential empirical likelihood test
exp2.mle MLE of continuous univariate distributions defined on the positive line
expmle MLE of continuous univariate distributions defined on the positive line
expregs Many exponential regressions

-- F --

fish.kent Hypothesis test for von Mises-Fisher distribution over Kent distribution
floyd Floyd-Warshall algorithm for shortest paths in a directed graph
foldnorm.mle MLE of continuous univariate distributions defined on the positive line
fs.reg Variable selection in generalised linear regression models with forward selection
ftest Multi-sample tests for vectors
ftests Many multi-sample tests

-- G --

g2Test G-square test of conditional indepdence
g2tests Many G-square tests of indepedence
g2tests_perm Many G-square tests of indepedence
g2Test_perm G-square test of conditional indepdence
g2Test_univariate Matrix with G-square tests of indepdence
g2Test_univariate_perm Matrix with G-square tests of indepdence
gammamle MLE of continuous univariate distributions defined on the positive line
gaussian.nb Naive Bayes classifiers
gaussiannb.pred Prediction with some naive Bayes classifiers
geom.anova Analysis of variance with a count variable
geom.anovas Many analysis of variance tests with a discrete variable
geom.mle MLE of count data
geom.nb Naive Bayes classifiers
geom.regs Many simple geometric regressions.
glm_logistic Logistic and Poisson regression models
glm_poisson Logistic and Poisson regression models
group.all Some summary statistics of a vector for each level of a grouping variable.
group.any Some summary statistics of a vector for each level of a grouping variable.
group.mad Some summary statistics of a vector for each level of a grouping variable.
group.max Some summary statistics of a vector for each level of a grouping variable.
group.mean Some summary statistics of a vector for each level of a grouping variable.
group.med Some summary statistics of a vector for each level of a grouping variable.
group.min Some summary statistics of a vector for each level of a grouping variable.
group.min_max Some summary statistics of a vector for each level of a grouping variable.
group.sum Sums of a vector for each level of a grouping variable
group.var Some summary statistics of a vector for each level of a grouping variable.
groupcolVars Column and row-wise variances and standard deviations of a matrix
groupcorrels Correlation between a vector and a set of variables
gumbel.mle MLE of continuous univariate distributions defined on the real line

-- H --

halfnorm.mle MLE of continuous univariate distributions defined on the positive line
hash.find Find the given value in a hash table
hash.list Hash - Pair function
hash2list Hash object to a list object
hd.eigen Eigenvalues in high dimensional principal component analysis
hsecant01.mle MLE of distributions defined in the (0, 1) interval

-- I --

iag.mle MLE of (hyper-)spherical distributions
ibeta.mle MLE of distributions defined in the (0, 1) interval
invdir.mle MLE of the inverted Dirichlet distribution
invgauss.mle MLE of continuous univariate distributions defined on the positive line
is.symmetric Check whether a square matrix is symmetric
is_element Find element

-- J --

james James multivariate version of the t-test

-- K --

knn k nearest neighbours algorithm (k-NN)
knn.cv Cross-Validation for the k-NN algorithm
kruskaltest Multi-sample tests for vectors
kruskaltests Many multi-sample tests
kuiper Uniformity tests for circular data
kurt Skewness and kurtosis coefficients
kurt.test2 Skewness and kurtosis coefficients

-- L --

laplace.mle MLE of continuous univariate distributions defined on the real line
Lbeta Natural logarithm of the beta function
Lchoose Binomial coefficient and its logarithm
Lgamma Natural logarithm of the gamma function and its derivatives.
lindley.mle MLE of continuous univariate distributions defined on the positive line
list.ftests Many F-tests with really huge matrices
lmfit Linear models for large scale data
Log Natural Logarithm each element of a matrix
logcauchy.mle MLE of continuous univariate distributions defined on the positive line
logistic.cat1 Logistic or Poisson regression with a single categorical predictor
logistic.mle MLE of continuous univariate distributions defined on the real line
logistic_only Many univariate simple binary logistic regressions
logitnorm.mle MLE of distributions defined in the (0, 1) interval
loglogistic.mle MLE of continuous univariate distributions defined on the positive line
lognorm.mle MLE of continuous univariate distributions defined on the positive line
logseries.mle MLE of count data
lomax.mle MLE of continuous univariate distributions defined on the positive line
lower_tri Lower and Upper triangular of a matrix

-- M --

mad2 Mean absolute deviation of a vector
mahala Mahalanobis distance
mat.mat Number of equal columns between two matrices
Match Match
match.coefs Column-wise matching coefficients
matrix.sum Sum of a matrix
matrnorm Generates random values from a normal and puts them in a matrix
maxboltz.mle MLE of continuous univariate distributions defined on the positive line
mcnemar Multi-sample tests for vectors
mcnemars Many 2 sample tests tests
med Median of a vector
mediandir Fast calculation of the spherical and hyperspherical median
min_max Minimum and maximum of a vector
multinom.mle MLE for multivariate discrete data
multinom.nb Naive Bayes classifiers
multinom.reg Multinomial regression
multinom.regs Many simple multinomial regressions.
multinomnb.pred Prediction with some naive Bayes classifiers
multivmf.mle MLE of (hyper-)spherical distributions
mv.eeltest1 Exponential empirical likelihood for a one sample mean vector hypothesis testing
mv.eeltest2 Exponential empirical likelihood hypothesis testing for two mean vectors
mvbetas Many multivariate simple linear regressions coefficients
mvkurtosis Multivariate kurtosis
mvnorm.mle MLE of the multivariate normal distribution

-- N --

negbin.mle MLE of count data
Norm Norm of a matrix
normal.mle MLE of continuous univariate distributions defined on the real line
normlog.mle MLE of continuous univariate distributions defined on the positive line
normlog.reg Gaussian regression with a log-link
normlog.regs Many simple Gaussian regressions with a log-link
nth Column and row-wise nth smallest value of a matrix/vector

-- O --

odds Many odds ratio tests
odds.ratio Odds ratio and relative risk
ompr Orthogonal matching pursuit regression
Order Column and row-wise Order - Sort Indices
ordinal.mle Natural logarithm of the beta functionMLE of the ordinal model without covariates

-- P --

pareto.mle MLE of continuous univariate distributions defined on the positive line
pc.skel The skeleton of a Bayesian network produced by the PC algorithm
percent.ttest Hypothesis test for two means of percentages
percent.ttests Many hypothesis tests for two means of percentages
permutation Permutation
permutation.next Permutation
permutation.prev Permutation
Pmax Minima and maxima of two vectors
Pmin Minima and maxima of two vectors
pois.test Tests for the dispersion parameter in Poisson distribution
poisdisp.test Tests for the dispersion parameter in Poisson distribution
poisson.anova Analysis of variance with a count variable
poisson.anovas Many analysis of variance tests with a discrete variable
poisson.cat1 Logistic or Poisson regression with a single categorical predictor
poisson.mle MLE of count data
poisson.nb Naive Bayes classifiers
poissonnb.pred Prediction with some naive Bayes classifiers
poisson_only Many univariate simple poisson regressions
prop.reg Quasi binomial regression for proportions
prop.regs Quasi binomial regression for proportions
proptest Many one sample tests
proptests Many 2 sample proportions tests

-- Q --

qpois.reg Quasi Poisson regression
qpois.regs Quasi Poisson regression

-- R --

racg Angular central Gaussian random values simulation
Rank Ranks of the values of a vector
rayleigh.mle MLE of continuous univariate distributions defined on the positive line
read.directory Reading the files of a directory
read.examples Reading the files of a directory
regression Many univariate simple linear regressions
rel.risk Odds ratio and relative risk
rep_col Replicate columns/rows
rep_row Replicate columns/rows
rint.mle Moment and maximum likelihood estimation of variance components
rint.reg Random intercepts linear mixed models
rint.regbx Random intercepts linear mixed models
rint.regs Many simple linear mixed model regressions
rm.anova Repeated measures anova
rm.anovas Many regression based tests for single sample repeated measures
rm.lines Many regression based tests for single sample repeated measures
rmdp High dimensional MCD based detection of outliers
rmvlaplace Multivariate Laplace random values simulation
rmvnorm Multivariate normal and t random values simulation
rmvt Multivariate normal and t random values simulation
Rnorm Simulation of random values from a normal distribution
Round Round each element of a matrix/vector
rowAll Column and row-wise Any
rowAny Column and row-wise Any
rowCountValues Row - Wise matrix/vector count the frequency of a value
rowcvs Column and row wise coefficients of variation
rowFalse Row-wise true value of a matrix
rowhameans Column and row-wise means of a matrix
rowMads Column and row-wise mean absolute deviations
rowMaxs Row-wise minimum and maximum of a matrix.
rowmeans Column and row-wise means of a matrix
rowMedians Column and row-wise medians
rowMins Row-wise minimum and maximum of a matrix.
rowMinsMaxs Row-wise minimum and maximum of a matrix.
rownth Column and row-wise nth smallest value of a matrix/vector
rowOrder Column and row-wise Order - Sort Indices
rowprods Column and row-wise products
rowrange Column and row-wise range of values of a matrix.
rowRanks Column and row-wise ranks
rowShuffle Column and row-wise Shuffle
rowsums Column and row-wise sums of a matrix
rowTabulate Column and row-wise tabulate
rowTrue Row-wise true value of a matrix
rowTrueFalse Row-wise true value of a matrix
rowVars Column and row-wise variances and standard deviations of a matrix
rvmf Random values simulation from a von Mises-Fisher distribution
rvonmises Random values simulation from a von Mises distribution

-- S --

score.betaregs Many score based regression models.
score.expregs Many score based regression models.
score.gammaregs Many score based regression models.
score.geomregs Many score based regression models.
score.glms Many score based GLM regressions
score.invgaussregs Many score based regression models.
score.multinomregs Many score based GLM regressions
score.negbinregs Many score based GLM regressions
score.weibregs Many score based regression models.
score.ztpregs Many score based regression models.
sftest Many Shapiro-Francia normality tests
sftests Many Shapiro-Francia normality tests
skew Skewness and kurtosis coefficients
skew.test2 Skewness and kurtosis coefficients
Sort Sort - Sort a vector coresponding to another
sort_cor_vectors Sort - Sort a vector coresponding to another
sort_mat Sorting of the columns-rows of a matrix
sort_unique Sort and unique
sort_unique.length Sort and unique
sourceR Source many R files
sourceRd Source many R files
spat.med Spatial median for Euclidean data
spdinv Inverse of a symmetric positive definite matrix
spml.mle MLE of some circular distributions
spml.reg Circular or angular regression
spml.regs Many simple circular or angular regressions
squareform Vector allocation in a symmetric matrix
standardise Standardisation
submatrix Sub-matrix

-- T --

Table Table Creation - Frequency of each value
tmle MLE of continuous univariate distributions defined on the real line
tobit.mle MLE of the tobit model
total.dist Sum of all pairwise distances in a distance matrix
total.dista Sum of all pairwise distances in a distance matrix
transpose Transpose of a matrix
Trigamma Natural logarithm of the gamma function and its derivatives.
ttest Many one sample tests
ttest1 One sample t-test for a vector
ttest2 Multi-sample tests for vectors
ttests Many 2 sample tests tests
ttests.pairs Matrix with all pairs of t-tests
twoway.anova Multi-sample tests for vectors
twoway.anovas Many two-way ANOVAs

-- U --

univglms Many univariate generalised linear regressions
upper_tri Lower and Upper triangular of a matrix

-- V --

Var Variance (and standard deviation) of a vector
var2test Multi-sample tests for vectors
var2tests Many 2 sample tests tests
varcomps.mle Moment and maximum likelihood estimation of variance components
varcomps.mom Moment and maximum likelihood estimation of variance components
vartest Many one sample tests
vartests Many multi-sample tests
vecdist Distance matrix
vm.mle MLE of some circular distributions
vmf.mle MLE of (hyper-)spherical distributions

-- W --

watson Uniformity tests for circular data
weib.reg Weibull regression model
weibull.mle MLE of continuous univariate distributions defined on the positive line
which_isFactor Index of the columns of a data.frame which are factor variables
wigner.mle MLE of continuous univariate distributions defined on the real line
wrapcauchy.mle MLE of some circular distributions

-- X --

XopY.sum Operations between two matrices

-- Z --

zip.mle MLE of count data
ztp.mle MLE of count data