Learn R Programming

⚠️There's a newer version (3.6.2) of this package.Take me there.

stats (version 3.2.5)

The R Stats Package

Description

R statistical functions.

Copy Link

Version

Version

3.2.5

License

Part of R 3.2.5

Maintainer

R-core R-core@R-project.org

Last Published

December 12th, 2019

Functions in stats (3.2.5)

acf

Auto- and Cross- Covariance and -Correlation Function Estimation
acf2AR

Compute an AR Process Exactly Fitting an ACF
anova.lm

ANOVA for Linear Model Fits
anova

Anova Tables
AIC

Akaike's An Information Criterion
alias

Find Aliases (Dependencies) in a Model
aggregate

Compute Summary Statistics of Data Subsets
add1

Add or Drop All Possible Single Terms to a Model
anova.glm

Analysis of Deviance for Generalized Linear Model Fits
addmargins

Puts Arbitrary Margins on Multidimensional Tables or Arrays
anova.mlm

Comparisons between Multivariate Linear Models
aov

Fit an Analysis of Variance Model
ARMAacf

Compute Theoretical ACF for an ARMA Process
ansari.test

Ansari-Bradley Test
ar

Fit Autoregressive Models to Time Series
arima0

ARIMA Modelling of Time Series -- Preliminary Version
arima.sim

Simulate from an ARIMA Model
approxfun

Interpolation Functions
ar.ols

Fit Autoregressive Models to Time Series by OLS
arima

ARIMA Modelling of Time Series
bartlett.test

Bartlett Test of Homogeneity of Variances
ARMAtoMA

Convert ARMA Process to Infinite MA Process
biplot

Biplot of Multivariate Data
binom.test

Exact Binomial Test
asOneSidedFormula

Convert to One-Sided Formula
Beta

The Beta Distribution
as.hclust

Convert Objects to Class hclust
ave

Group Averages Over Level Combinations of Factors
Binomial

The Binomial Distribution
bandwidth

Bandwidth Selectors for Kernel Density Estimation
biplot.princomp

Biplot for Principal Components
case+variable.names

Case and Variable Names of Fitted Models
.checkMFClasses

Functions to Check the Type of Variables passed to Model Frames
Chisquare

The (non-central) Chi-Squared Distribution
cancor

Canonical Correlations
Box.test

Box-Pierce and Ljung-Box Tests
cmdscale

Classical (Metric) Multidimensional Scaling
chisq.test

Pearson's Chi-squared Test for Count Data
birthday

Probability of coincidences
Cauchy

The Cauchy Distribution
coef

Extract Model Coefficients
confint

Confidence Intervals for Model Parameters
convolve

Convolution of Sequences via FFT
constrOptim

Linearly Constrained Optimization
complete.cases

Find Complete Cases
cor

Correlation, Variance and Covariance (Matrices)
cophenetic

Cophenetic Distances for a Hierarchical Clustering
cor.test

Test for Association/Correlation Between Paired Samples
contrast

(Possibly Sparse) Contrast Matrices
contrasts

Get and Set Contrast Matrices
delete.response

Modify Terms Objects
deriv

Symbolic and Algorithmic Derivatives of Simple Expressions
cutree

Cut a Tree into Groups of Data
df.residual

Residual Degrees-of-Freedom
cov.wt

Weighted Covariance Matrices
decompose

Classical Seasonal Decomposition by Moving Averages
cpgram

Plot Cumulative Periodogram
dendrapply

Apply a Function to All Nodes of a Dendrogram
deviance

Model Deviance
density

Kernel Density Estimation
eff.aovlist

Compute Efficiencies of Multistratum Analysis of Variance
ecdf

Empirical Cumulative Distribution Function
factor.scope

Compute Allowed Changes in Adding to or Dropping from a Formula
family

Family Objects for Models
getInitial

Get Initial Parameter Estimates
embed

Embedding a Time Series
effects

Effects from Fitted Model
glm.control

Auxiliary for Controlling GLM Fitting
fft

Fast Discrete Fourier Transform (FFT)
FDist

The F Distribution
extractAIC

Extract AIC from a Fitted Model
expand.model.frame

Add new variables to a model frame
fligner.test

Fligner-Killeen Test of Homogeneity of Variances
formula

Model Formulae
formula.nls

Extract Model Formula from nls Object
diffinv

Discrete Integration: Inverse of Differencing
friedman.test

Friedman Rank Sum Test
dist

Distance Matrix Computation
glm

Fitting Generalized Linear Models
glm.summaries

Accessing Generalized Linear Model Fits
interaction.plot

Two-way Interaction Plot
integrate

Integration of One-Dimensional Functions
kmeans

K-Means Clustering
kruskal.test

Kruskal-Wallis Rank Sum Test
HoltWinters

Holt-Winters Filtering
Hypergeometric

The Hypergeometric Distribution
ks.test

Kolmogorov-Smirnov Tests
ksmooth

Kernel Regression Smoother
Logistic

The Logistic Distribution
logLik

Extract Log-Likelihood
loglin

Fitting Log-Linear Models
Lognormal

The Log Normal Distribution
mantelhaen.test

Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
mauchly.test

Mauchly's Test of Sphericity
hclust

Hierarchical Clustering
heatmap

Draw a Heat Map
kernapply

Apply Smoothing Kernel
kernel

Smoothing Kernel Objects
loadings

Print Loadings in Factor Analysis
loess.control

Set Parameters for Loess
ls.print

Print lsfit Regression Results
lsfit

Find the Least Squares Fit
model.matrix

Construct Design Matrices
lowess

Scatter Plot Smoothing
model.tables

Compute Tables of Results from an Aov Model Fit
na.contiguous

Find Longest Contiguous Stretch of non-NAs
ls.diag

Compute Diagnostics for lsfit Regression Results
na.fail

Handle Missing Values in Objects
plot.density

Plot Method for Kernel Density Estimation
plot.HoltWinters

Plot function for HoltWinters objects
print.ts

Printing and Formatting of Time-Series Objects
nls.control

Control the Iterations in nls
nlm

Non-Linear Minimization
printCoefmat

Print Coefficient Matrices
NLSstLfAsymptote

Horizontal Asymptote on the Left Side
NLSstRtAsymptote

Horizontal Asymptote on the Right Side
plot.stepfun

Plot Step Functions
plot.spec

Plotting Spectral Densities
predict.glm

Predict Method for GLM Fits
predict.HoltWinters

Prediction Function for Fitted Holt-Winters Models
filter

Linear Filtering on a Time Series
predict.nls

Predicting from Nonlinear Least Squares Fits
predict.loess

Predict Loess Curve or Surface
ftable

Flat Contingency Tables
ftable.formula

Formula Notation for Flat Contingency Tables
fisher.test

Fisher's Exact Test for Count Data
is.empty.model

Test if a Model's Formula is Empty
IQR

The Interquartile Range
lag

Lag a Time Series
lag.plot

Time Series Lag Plots
line

Robust Line Fitting
NLSstAsymptotic

Fit the Asymptotic Regression Model
Multinom

The Multinomial Distribution
na.action

NA Action
plot.acf

Plot Autocovariance and Autocorrelation Functions
pairwise.wilcox.test

Pairwise Wilcoxon Rank Sum Tests
NLSstClosestX

Inverse Interpolation
plot.profile.nls

Plot a profile.nls Object
plot.ppr

Plot Ridge Functions for Projection Pursuit Regression Fit
prcomp

Principal Components Analysis
isoreg

Isotonic / Monotone Regression
KalmanLike

Kalman Filtering
lm.influence

Regression Diagnostics
lm

Fitting Linear Models
monthplot

Plot a Seasonal or other Subseries from a Time Series
oneway.test

Test for Equal Means in a One-Way Layout
mood.test

Mood Two-Sample Test of Scale
optim

General-purpose Optimization
optimize

One Dimensional Optimization
listof

A Class for Lists of (Parts of) Model Fits
make.link

Create a Link for GLM Families
mahalanobis

Mahalanobis Distance
median

Median Value
mcnemar.test

McNemar's Chi-squared Test for Count Data
NegBinomial

The Negative Binomial Distribution
nextn

Highly Composite Numbers
pairwise.t.test

Pairwise t tests
Normal

The Normal Distribution
nobs

Extract the Number of Observations from a Fit.
predict.Arima

Forecast from ARIMA fits
print.power.htest

Print Methods for Hypothesis Tests and Power Calculation Objects
princomp

Principal Components Analysis
proj

Projections of Models
rWishart

Random Wishart Distributed Matrices
prop.test

Test of Equal or Given Proportions
smoothEnds

End Points Smoothing (for Running Medians)
smooth.spline

Fit a Smoothing Spline
scatter.smooth

Scatter Plot with Smooth Curve Fitted by Loess
spectrum

Spectral Density Estimation
r2dtable

Random 2-way Tables with Given Marginals
replications

Number of Replications of Terms
read.ftable

Manipulate Flat Contingency Tables
reshape

Reshape Grouped Data
stl

Seasonal Decomposition of Time Series by Loess
shapiro.test

Shapiro-Wilk Normality Test
setNames

Set the Names in an Object
t.test

Student's t-Test
symnum

Symbolic Number Coding
stlmethods

Methods for STL Objects
splinefun

Interpolating Splines
SSweibull

Self-Starting Nls Weibull Growth Curve Model
start

Encode the Terminal Times of Time Series
summary.princomp

Summary method for Principal Components Analysis
supsmu

Friedman's SuperSmoother
ts.union

Bind Two or More Time Series
tsdiag

Diagnostic Plots for Time-Series Fits
Uniform

The Uniform Distribution
uniroot

One Dimensional Root (Zero) Finding
weighted.mean

Weighted Arithmetic Mean
order.dendrogram

Ordering or Labels of the Leaves in a Dendrogram
plot.isoreg

Plot Method for isoreg Objects
plot.lm

Plot Diagnostics for an lm Object
power

Create a Power Link Object
power.prop.test

Power Calculations for Two-Sample Test for Proportions
predict

Model Predictions
predict.lm

Predict method for Linear Model Fits
rect.hclust

Draw Rectangles Around Hierarchical Clusters
relevel

Reorder Levels of Factor
SignRank

Distribution of the Wilcoxon Signed Rank Statistic
Wilcoxon

Distribution of the Wilcoxon Rank Sum Statistic
window

Time Windows
weighted.residuals

Compute Weighted Residuals
pairwise.table

Tabulate p values for pairwise comparisons
Poisson

The Poisson Distribution
plot.ts

Plotting Time-Series Objects
preplot

Pre-computations for a Plotting Object
predict.smooth.spline

Predict from Smoothing Spline Fit
PP.test

Phillips-Perron Test for Unit Roots
power.t.test

Power calculations for one and two sample t tests
quantile

Sample Quantiles
reorder.dendrogram

Reorder a Dendrogram
quade.test

Quade Test
prop.trend.test

Test for trend in proportions
spec.ar

Estimate Spectral Density of a Time Series from AR Fit
sortedXyData

Create a sortedXyData Object
selfStart

Construct Self-starting Nonlinear Models
qqnorm

Quantile-Quantile Plots
se.contrast

Standard Errors for Contrasts in Model Terms
reorder.default

Reorder Levels of a Factor
spec.taper

Taper a Time Series by a Cosine Bell
spec.pgram

Estimate Spectral Density of a Time Series by a Smoothed Periodogram
SSD

SSD Matrix and Estimated Variance Matrix in Multivariate Models
SSfol

Self-Starting Nls First-order Compartment Model
StructTS

Fit Structural Time Series
termplot

Plot Regression Terms
TDist

The Student t Distribution
summary.aov

Summarize an Analysis of Variance Model
terms.object

Description of Terms Objects
SSasympOrig

Self-Starting Nls Asymptotic Regression Model through the Origin
smooth

Tukey's (Running Median) Smoothing
SSfpl

Self-Starting Nls Four-Parameter Logistic Model
SSbiexp

Self-Starting Nls Biexponential model
SSgompertz

Self-Starting Nls Gompertz Growth Model
step

Choose a model by AIC in a Stepwise Algorithm
terms.formula

Construct a terms Object from a Formula
stepfun

Step Functions - Creation and Class
ts

Time-Series Objects
terms

Model Terms
ts.plot

Plot Multiple Time Series
update.formula

Model Updating
stat.anova

GLM Anova Statistics
update

Update and Re-fit a Model Call
stats-defunct

Defunct Functions in Package stats
stats-package

The R Stats Package
stats-deprecated

Deprecated Functions in Package stats
tsp

Tsp Attribute of Time-Series-like Objects
vcov

Calculate Variance-Covariance Matrix for a Fitted Model Object
tsSmooth

Use Fixed-Interval Smoothing on Time Series
Weibull

The Weibull Distribution
weights

Extract Model Weights
wilcox.test

Wilcoxon Rank Sum and Signed Rank Tests
time

Sampling Times of Time Series
Tukey

The Studentized Range Distribution
TukeyHSD

Compute Tukey Honest Significant Differences
dummy.coef

Extract Coefficients in Original Coding
Distributions

Distributions in the stats package
C

Sets Contrasts for a Factor
fitted

Extract Model Fitted Values
fivenum

Tukey Five-Number Summaries
Geometric

The Geometric Distribution
GammaDist

The Gamma Distribution
identify.hclust

Identify Clusters in a Dendrogram
influence.measures

Regression Deletion Diagnostics
lm.summaries

Accessing Linear Model Fits
lm.fit

Fitter Functions for Linear Models
manova

Multivariate Analysis of Variance
makepredictcall

Utility Function for Safe Prediction
medpolish

Median Polish of a Matrix
model.extract

Extract Components from a Model Frame
naresid

Adjust for Missing Values
naprint

Adjust for Missing Values
numericDeriv

Evaluate Derivatives Numerically
offset

Include an Offset in a Model Formula
p.adjust

Adjust P-values for Multiple Comparisons
pairwise.prop.test

Pairwise comparisons for proportions
poisson.test

Exact Poisson tests
power.anova.test

Power Calculations for Balanced One-Way Analysis of Variance Tests
ppoints

Ordinates for Probability Plotting
ppr

Projection Pursuit Regression
profile.nls

Method for Profiling nls Objects
profile

Generic Function for Profiling Models
residuals

Extract Model Residuals
runmed

Running Medians -- Robust Scatter Plot Smoothing
screeplot

Screeplots
SSasymp

Self-Starting Nls Asymptotic Regression Model
sd

Standard Deviation
SSasympOff

Self-Starting Nls Asymptotic Regression Model with an Offset
SSlogis

Self-Starting Nls Logistic Model
summary.glm

Summarizing Generalized Linear Model Fits
SSmicmen

Self-Starting Nls Michaelis-Menten Model
summary.manova

Summary Method for Multivariate Analysis of Variance
summary.lm

Summarizing Linear Model Fits
summary.nls

Summarizing Non-Linear Least-Squares Model Fits
toeplitz

Form Symmetric Toeplitz Matrix
ts-methods

Methods for Time Series Objects
var.test

F Test to Compare Two Variances
varimax

Rotation Methods for Factor Analysis