Learn R Programming

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

stats (version 3.1.2)

The R Stats Package

Description

R statistical functions

Copy Link

Version

Version

3.1.2

License

Part of R 3.1.2

Maintainer

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

Last Published

December 12th, 2019

Functions in stats (3.1.2)

aggregate

Compute Summary Statistics of Data Subsets
AIC

Akaike's An Information Criterion
approxfun

Interpolation Functions
anova.glm

Analysis of Deviance for Generalized Linear Model Fits
acf2AR

Compute an AR Process Exactly Fitting an ACF
add1

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

ANOVA for Linear Model Fits
acf

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

Anova Tables
addmargins

Puts Arbitrary Margins on Multidimensional Tables or Arrays
ar

Fit Autoregressive Models to Time Series
bartlett.test

Bartlett Test of Homogeneity of Variances
ARMAtoMA

Convert ARMA Process to Infinite MA Process
arima.sim

Simulate from an ARIMA Model
ARMAacf

Compute Theoretical ACF for an ARMA Process
ave

Group Averages Over Level Combinations of Factors
asOneSidedFormula

Convert to One-Sided Formula
binom.test

Exact Binomial Test
arima

ARIMA Modelling of Time Series
arima0

ARIMA Modelling of Time Series -- Preliminary Version
.checkMFClasses

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

Probability of coincidences
case+variable.names

Case and Variable Names of Fitted Models
chisq.test

Pearson's Chi-squared Test for Count Data
Chisquare

The (non-central) Chi-Squared Distribution
Cauchy

The Cauchy Distribution
Binomial

The Binomial Distribution
coef

Extract Model Coefficients
biplot.princomp

Biplot for Principal Components
biplot

Biplot of Multivariate Data
deriv

Symbolic and Algorithmic Derivatives of Simple Expressions
cutree

Cut a Tree into Groups of Data
complete.cases

Find Complete Cases
dendrapply

Apply a Function to All Nodes of a Dendrogram
cov.wt

Weighted Covariance Matrices
density

Kernel Density Estimation
constrOptim

Linearly Constrained Optimization
deviance

Model Deviance
delete.response

Modify Terms Objects
convolve

Convolution of Sequences via FFT
ecdf

Empirical Cumulative Distribution Function
eff.aovlist

Compute Efficiencies of Multistratum Analysis of Variance
effects

Effects from Fitted Model
factor.scope

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

Discrete Integration: Inverse of Differencing
df.residual

Residual Degrees-of-Freedom
embed

Embedding a Time Series
expand.model.frame

Add new variables to a model frame
Distributions

Distributions in the stats package
dummy.coef

Extract Coefficients in Original Coding
formula.nls

Extract Model Formula from nls Object
friedman.test

Friedman Rank Sum Test
filter

Linear Filtering on a Time Series
fitted

Extract Model Fitted Values
ftable.formula

Formula Notation for Flat Contingency Tables
fligner.test

Fligner-Killeen Test of Homogeneity of Variances
ftable

Flat Contingency Tables
FDist

The F Distribution
formula

Model Formulae
fivenum

Tukey Five-Number Summaries
getInitial

Get Initial Parameter Estimates
Hypergeometric

The Hypergeometric Distribution
Geometric

The Geometric Distribution
glm.summaries

Accessing Generalized Linear Model Fits
glm.control

Auxiliary for Controlling GLM Fitting
integrate

Integration of One-Dimensional Functions
interaction.plot

Two-way Interaction Plot
identify.hclust

Identify Clusters in a Dendrogram
influence.measures

Regression Deletion Diagnostics
HoltWinters

Holt-Winters Filtering
kernapply

Apply Smoothing Kernel
KalmanLike

Kalman Filtering
lag

Lag a Time Series
Logistic

The Logistic Distribution
loess

Local Polynomial Regression Fitting
loess.control

Set Parameters for Loess
ks.test

Kolmogorov-Smirnov Tests
lsfit

Find the Least Squares Fit
loadings

Print Loadings in Factor Analysis
mahalanobis

Mahalanobis Distance
naprint

Adjust for Missing Values
NegBinomial

The Negative Binomial Distribution
NLSstRtAsymptote

Horizontal Asymptote on the Right Side
make.link

Create a Link for GLM Families
nobs

Extract the Number of Observations from a Fit.
makepredictcall

Utility Function for Safe Prediction
nextn

Highly Composite Numbers
pairwise.prop.test

Pairwise comparisons for proportions
nlm

Non-Linear Minimization
pairwise.t.test

Pairwise t tests
plot.ts

Plotting Time-Series Objects
ppoints

Ordinates for Probability Plotting
Poisson

The Poisson Distribution
mauchly.test

Mauchly's Test of Sphericity
prcomp

Principal Components Analysis
mood.test

Mood Two-Sample Test of Scale
monthplot

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

McNemar's Chi-squared Test for Count Data
numericDeriv

Evaluate Derivatives Numerically
Normal

The Normal Distribution
oneway.test

Test for Equal Means in a One-Way Layout
plot.stepfun

Plot Step Functions
plot.spec

Plotting Spectral Densities
optimize

One Dimensional Optimization
profile.nls

Method for Profiling nls Objects
printCoefmat

Print Coefficient Matrices
power.t.test

Power calculations for one and two sample t tests
PP.test

Phillips-Perron Test for Unit Roots
read.ftable

Manipulate Flat Contingency Tables
IQR

The Interquartile Range
Lognormal

The Log Normal Distribution
is.empty.model

Test if a Model's Formula is Empty
median

Median Value
lowess

Scatter Plot Smoothing
medpolish

Median Polish of a Matrix
Multinom

The Multinomial Distribution
na.action

NA Action
lag.plot

Time Series Lag Plots
NLSstClosestX

Inverse Interpolation
line

Robust Line Fitting
ls.diag

Compute Diagnostics for lsfit Regression Results
ls.print

Print lsfit Regression Results
model.matrix

Construct Design Matrices
mantelhaen.test

Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
manova

Multivariate Analysis of Variance
NLSstLfAsymptote

Horizontal Asymptote on the Left Side
model.tables

Compute Tables of Results from an Aov Model Fit
predict.HoltWinters

Prediction Function for Fitted Holt-Winters Models
predict.glm

Predict Method for GLM Fits
relevel

Reorder Levels of Factor
reorder.dendrogram

Reorder a Dendrogram
smoothEnds

End Points Smoothing (for Running Medians)
predict.loess

Predict Loess Curve or Surface
rWishart

Random Wishart Distributed Matrices
runmed

Running Medians -- Robust Scatter Plot Smoothing
quade.test

Quade Test
predict.nls

Predicting from Nonlinear Least Squares Fits
r2dtable

Random 2-way Tables with Given Marginals
residuals

Extract Model Residuals
reshape

Reshape Grouped Data
rect.hclust

Draw Rectangles Around Hierarchical Clusters
shapiro.test

Shapiro-Wilk Normality Test
se.contrast

Standard Errors for Contrasts in Model Terms
sd

Standard Deviation
SignRank

Distribution of the Wilcoxon Signed Rank Statistic
SSfpl

Self-Starting Nls Four-Parameter Logistic Model
stats-package

The R Stats Package
stats-deprecated

Deprecated Functions in Package stats
SSgompertz

Self-Starting Nls Gompertz Growth Model
tsSmooth

Use Fixed-Interval Smoothing on Time Series
sortedXyData

Create a sortedXyData Object
stlmethods

Methods for STL Objects
SSfol

Self-Starting Nls First-order Compartment Model
SSD

SSD Matrix and Estimated Variance Matrix in Multivariate Models
StructTS

Fit Structural Time Series
summary.manova

Summary Method for Multivariate Analysis of Variance
summary.lm

Summarizing Linear Model Fits
poisson.test

Exact Poisson tests
plot.density

Plot Method for Kernel Density Estimation
plot.acf

Plot Autocovariance and Autocorrelation Functions
power.anova.test

Power Calculations for Balanced One-Way Analysis of Variance Tests
predict.smooth.spline

Predict from Smoothing Spline Fit
preplot

Pre-computations for a Plotting Object
selfStart

Construct Self-starting Nonlinear Models
listof

A Class for Lists of (Parts of) Model Fits
lm.fit

Fitter Functions for Linear Models
lm.summaries

Accessing Linear Model Fits
lm.influence

Regression Diagnostics
na.fail

Handle Missing Values in Objects
na.contiguous

Find Longest Contiguous Stretch of non-NAs
setNames

Set the Names in an Object
SSasympOrig

Self-Starting Nls Asymptotic Regression Model through the Origin
smooth.spline

Fit a Smoothing Spline
smooth

Tukey's (Running Median) Smoothing
SSbiexp

Self-Starting Nls Biexponential model
stepfun

Step Function Class
summary.aov

Summarize an Analysis of Variance Model
stl

Seasonal Decomposition of Time Series by Loess
ts.union

Bind Two or More Time Series
summary.glm

Summarizing Generalized Linear Model Fits
pairwise.table

Tabulate p values for pairwise comparisons
plot.isoreg

Plot Method for isoreg Objects
pairwise.wilcox.test

Pairwise Wilcoxon Rank Sum Tests
plot.HoltWinters

Plot function for HoltWinters objects
predict.lm

Predict method for Linear Model Fits
predict

Model Predictions
SSasympOff

Self-Starting Nls Asymptotic Regression Model with an Offset
SSasymp

Self-Starting Nls Asymptotic Regression Model
start

Encode the Terminal Times of Time Series
SSweibull

Self-Starting Nls Weibull Growth Curve Model
TDist

The Student t Distribution
terms.formula

Construct a terms Object from a Formula
varimax

Rotation Methods for Factor Analysis
var.test

F Test to Compare Two Variances
Weibull

The Weibull Distribution
Tukey

The Studentized Range Distribution
weighted.mean

Weighted Arithmetic Mean
nls.control

Control the Iterations in nls
order.dendrogram

Ordering or Labels of the Leaves in a Dendrogram
NLSstAsymptotic

Fit the Asymptotic Regression Model
p.adjust

Adjust P-values for Multiple Comparisons
plot.ppr

Plot Ridge Functions for Projection Pursuit Regression Fit
power.prop.test

Power Calculations for Two-Sample Test for Proportions
power

Create a Power Link Object
plot.profile.nls

Plot a profile.nls Object
print.ts

Printing and Formatting of Time-Series Objects
print.power.htest

Print method for power calculation object
ts-methods

Methods for Time Series Objects
toeplitz

Form Symmetric Toeplitz Matrix
weighted.residuals

Compute Weighted Residuals
weights

Extract Model Weights
tsdiag

Diagnostic Plots for Time-Series Fits
C

Sets Contrasts for a Factor
update.formula

Model Updating
reorder.default

Reorder Levels of a Factor
update

Update and Re-fit a Model Call
replications

Number of Replications of Terms
spectrum

Spectral Density Estimation
SSlogis

Self-Starting Nls Logistic Model
splinefun

Interpolating Splines
SSmicmen

Self-Starting Nls Michaelis-Menten Model
t.test

Student's t-Test
symnum

Symbolic Number Coding
Uniform

The Uniform Distribution
time

Sampling Times of Time Series
terms

Model Terms
uniroot

One Dimensional Root (Zero) Finding
proj

Projections of Models
prop.test

Test of Equal or Given Proportions
prop.trend.test

Test for trend in proportions
qqnorm

Quantile-Quantile Plots
scatter.smooth

Scatter Plot with Smooth Curve Fitted by Loess
spec.ar

Estimate Spectral Density of a Time Series from AR Fit
screeplot

Screeplots
stat.anova

GLM Anova Statistics
spec.taper

Taper a Time Series by a Cosine Bell
stats-defunct

Defunct Functions in Package stats
summary.nls

Summarizing Non-Linear Least-Squares Model Fits
summary.princomp

Summary method for Principal Components Analysis
ts

Time-Series Objects
ts.plot

Plot Multiple Time Series
Wilcoxon

Distribution of the Wilcoxon Rank Sum Statistic
window

Time Windows