Learn R Programming

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

stats (version 3.1.1)

The R Stats Package

Description

R statistical functions

Copy Link

Version

Version

3.1.1

License

Part of R 3.1.1

Maintainer

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

Last Published

December 12th, 2019

Functions in stats (3.1.1)

acf

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

ANOVA for Linear Model Fits
anova

Anova Tables
acf2AR

Compute an AR Process Exactly Fitting an ACF
anova.glm

Analysis of Deviance for Generalized Linear Model Fits
approxfun

Interpolation Functions
AIC

Akaike's An Information Criterion
add1

Add or Drop All Possible Single Terms to a Model
addmargins

Puts Arbitrary Margins on Multidimensional Tables or Arrays
aggregate

Compute Summary Statistics of Data Subsets
ARMAacf

Compute Theoretical ACF for an ARMA Process
binom.test

Exact Binomial Test
bartlett.test

Bartlett Test of Homogeneity of Variances
ave

Group Averages Over Level Combinations of Factors
asOneSidedFormula

Convert to One-Sided Formula
ARMAtoMA

Convert ARMA Process to Infinite MA Process
ar

Fit Autoregressive Models to Time Series
arima0

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

Simulate from an ARIMA Model
arima

ARIMA Modelling of Time Series
Chisquare

The (non-central) Chi-Squared Distribution
coef

Extract Model Coefficients
case+variable.names

Case and Variable Names of Fitted Models
.checkMFClasses

Functions to Check the Type of Variables passed to Model Frames
chisq.test

Pearson's Chi-squared Test for Count Data
biplot

Biplot of Multivariate Data
Binomial

The Binomial Distribution
Cauchy

The Cauchy Distribution
birthday

Probability of coincidences
biplot.princomp

Biplot for Principal Components
deriv

Symbolic and Algorithmic Derivatives of Simple Expressions
ecdf

Empirical Cumulative Distribution Function
deviance

Model Deviance
fitted

Extract Model Fitted Values
eff.aovlist

Compute Efficiencies of Multistratum Analysis of Variance
Hypergeometric

The Hypergeometric Distribution
HoltWinters

Holt-Winters Filtering
fivenum

Tukey Five-Number Summaries
density

Kernel Density Estimation
dendrapply

Apply a Function to All Nodes of a Dendrogram
effects

Effects from Fitted Model
embed

Embedding a Time Series
getInitial

Get Initial Parameter Estimates
Geometric

The Geometric Distribution
Logistic

The Logistic Distribution
lag

Lag a Time Series
ks.test

Kolmogorov-Smirnov Tests
makepredictcall

Utility Function for Safe Prediction
Lognormal

The Log Normal Distribution
manova

Multivariate Analysis of Variance
cutree

Cut a Tree into Groups of Data
expand.model.frame

Add new variables to a model frame
delete.response

Modify Terms Objects
ftable

Flat Contingency Tables
ftable.formula

Formula Notation for Flat Contingency Tables
factor.scope

Compute Allowed Changes in Adding to or Dropping from a Formula
influence.measures

Regression Deletion Diagnostics
identify.hclust

Identify Clusters in a Dendrogram
kernapply

Apply Smoothing Kernel
KalmanLike

Kalman Filtering
complete.cases

Find Complete Cases
diffinv

Discrete Integration: Inverse of Differencing
fligner.test

Fligner-Killeen Test of Homogeneity of Variances
df.residual

Residual Degrees-of-Freedom
constrOptim

Linearly Constrained Optimization
interaction.plot

Two-way Interaction Plot
integrate

Integration of One-Dimensional Functions
formula

Model Formulae
lm.influence

Regression Diagnostics
lm.summaries

Accessing Linear Model Fits
lsfit

Find the Least Squares Fit
ls.print

Print lsfit Regression Results
na.action

NA Action
mcnemar.test

McNemar's Chi-squared Test for Count Data
Multinom

The Multinomial Distribution
median

Median Value
model.extract

Extract Components from a Model Frame
lm.fit

Fitter Functions for Linear Models
loadings

Print Loadings in Factor Analysis
medpolish

Median Polish of a Matrix
model.tables

Compute Tables of Results from an Aov Model Fit
model.matrix

Construct Design Matrices
plot.density

Plot Method for Kernel Density Estimation
plot.acf

Plot Autocovariance and Autocorrelation Functions
Poisson

The Poisson Distribution
plot.ts

Plotting Time-Series Objects
NegBinomial

The Negative Binomial Distribution
naprint

Adjust for Missing Values
nextn

Highly Composite Numbers
nlm

Non-Linear Minimization
oneway.test

Test for Equal Means in a One-Way Layout
optimize

One Dimensional Optimization
plot.spec

Plotting Spectral Densities
plot.stepfun

Plot Step Functions
predict.nls

Predicting from Nonlinear Least Squares Fits
predict.loess

Predict Loess Curve or Surface
nls.control

Control the Iterations in nls
NLSstAsymptotic

Fit the Asymptotic Regression Model
plot.profile.nls

Plot a profile.nls Object
plot.ppr

Plot Ridge Functions for Projection Pursuit Regression Fit
predict

Model Predictions
print.ts

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

Print method for power calculation object
predict.lm

Predict method for Linear Model Fits
dummy.coef

Extract Coefficients in Original Coding
Distributions

Distributions in the stats package
formula.nls

Extract Model Formula from nls Object
IQR

The Interquartile Range
friedman.test

Friedman Rank Sum Test
is.empty.model

Test if a Model's Formula is Empty
quantile

Sample Quantiles
quade.test

Quade Test
residuals

Extract Model Residuals
runmed

Running Medians -- Robust Scatter Plot Smoothing
smooth

Tukey's (Running Median) Smoothing
SignRank

Distribution of the Wilcoxon Signed Rank Statistic
lowess

Scatter Plot Smoothing
ls.diag

Compute Diagnostics for lsfit Regression Results
mahalanobis

Mahalanobis Distance
make.link

Create a Link for GLM Families
monthplot

Plot a Seasonal or other Subseries from a Time Series
nobs

Extract the Number of Observations from a Fit.
NLSstRtAsymptote

Horizontal Asymptote on the Right Side
mood.test

Mood Two-Sample Test of Scale
pairwise.t.test

Pairwise t tests
pairwise.prop.test

Pairwise comparisons for proportions
SSbiexp

Self-Starting Nls Biexponential model
SSD

SSD Matrix and Estimated Variance Matrix in Multivariate Models
stl

Seasonal Decomposition of Time Series by Loess
stlmethods

Methods for STL Objects
StructTS

Fit Structural Time Series
summary.aov

Summarize an Analysis of Variance Model
ts-methods

Methods for Time Series Objects
ts

Time-Series Objects
update

Update and Re-fit a Model Call
update.formula

Model Updating
SSfol

Self-Starting Nls First-order Compartment Model
read.ftable

Manipulate Flat Contingency Tables
r2dtable

Random 2-way Tables with Given Marginals
SSfpl

Self-Starting Nls Four-Parameter Logistic Model
stat.anova

GLM Anova Statistics
start

Encode the Terminal Times of Time Series
loess

Local Polynomial Regression Fitting
summary.glm

Summarizing Generalized Linear Model Fits
loess.control

Set Parameters for Loess
na.contiguous

Find Longest Contiguous Stretch of non-NAs
na.fail

Handle Missing Values in Objects
Normal

The Normal Distribution
order.dendrogram

Ordering or Labels of the Leaves in a Dendrogram
numericDeriv

Evaluate Derivatives Numerically
p.adjust

Adjust P-values for Multiple Comparisons
PP.test

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

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

Test of Equal or Given Proportions
proj

Projections of Models
rect.hclust

Draw Rectangles Around Hierarchical Clusters
cov.wt

Weighted Covariance Matrices
convolve

Convolution of Sequences via FFT
FDist

The F Distribution
filter

Linear Filtering on a Time Series
glm.summaries

Accessing Generalized Linear Model Fits
glm.control

Auxiliary for Controlling GLM Fitting
line

Robust Line Fitting
lag.plot

Time Series Lag Plots
mauchly.test

Mauchly's Test of Sphericity
mantelhaen.test

Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
plot.HoltWinters

Plot function for HoltWinters objects
power

Create a Power Link Object
power.prop.test

Power Calculations for Two-Sample Test for Proportions
plot.isoreg

Plot Method for isoreg Objects
printCoefmat

Print Coefficient Matrices
profile.nls

Method for Profiling nls Objects
screeplot

Screeplots
sd

Standard Deviation
smooth.spline

Fit a Smoothing Spline
smoothEnds

End Points Smoothing (for Running Medians)
summary.lm

Summarizing Linear Model Fits
tsdiag

Diagnostic Plots for Time-Series Fits
var.test

F Test to Compare Two Variances
tsp

Tsp Attribute of Time-Series-like Objects
weighted.residuals

Compute Weighted Residuals
varimax

Rotation Methods for Factor Analysis
C

Sets Contrasts for a Factor
weights

Extract Model Weights
SSasymp

Self-Starting Nls Asymptotic Regression Model
splinefun

Interpolating Splines
stats-package

The R Stats Package
stepfun

Step Function Class
toeplitz

Form Symmetric Toeplitz Matrix
time

Sampling Times of Time Series
weighted.mean

Weighted Arithmetic Mean
Weibull

The Weibull Distribution
NLSstClosestX

Inverse Interpolation
NLSstLfAsymptote

Horizontal Asymptote on the Left Side
pairwise.table

Tabulate p values for pairwise comparisons
pairwise.wilcox.test

Pairwise Wilcoxon Rank Sum Tests
poisson.test

Exact Poisson tests
power.anova.test

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

Ordinates for Probability Plotting
prcomp

Principal Components Analysis
predict.smooth.spline

Predict from Smoothing Spline Fit
relevel

Reorder Levels of Factor
replications

Number of Replications of Terms
reshape

Reshape Grouped Data
spec.taper

Taper a Time Series by a Cosine Bell
SSmicmen

Self-Starting Nls Michaelis-Menten Model
spectrum

Spectral Density Estimation
SSweibull

Self-Starting Nls Weibull Growth Curve Model
t.test

Student's t-Test
TDist

The Student t Distribution
reorder.default

Reorder Levels of a Factor
predict.HoltWinters

Prediction Function for Fitted Holt-Winters Models
reorder.dendrogram

Reorder a Dendrogram
predict.glm

Predict Method for GLM Fits
rWishart

Random Wishart Distributed Matrices
scatter.smooth

Scatter Plot with Smooth Curve Fitted by Loess
spec.ar

Estimate Spectral Density of a Time Series from AR Fit
sortedXyData

Create a sortedXyData Object
SSgompertz

Self-Starting Nls Gompertz Growth Model
SSlogis

Self-Starting Nls Logistic Model
terms.formula

Construct a terms Object from a Formula
terms

Model Terms
preplot

Pre-computations for a Plotting Object
qqnorm

Quantile-Quantile Plots
prop.trend.test

Test for trend in proportions
se.contrast

Standard Errors for Contrasts in Model Terms
setNames

Set the Names in an Object
selfStart

Construct Self-starting Nonlinear Models
shapiro.test

Shapiro-Wilk Normality Test
SSasympOff

Self-Starting Nls Asymptotic Regression Model with an Offset
SSasympOrig

Self-Starting Nls Asymptotic Regression Model through the Origin
stats-defunct

Defunct Functions in Package stats
symnum

Symbolic Number Coding
summary.princomp

Summary method for Principal Components Analysis
tsSmooth

Use Fixed-Interval Smoothing on Time Series
Tukey

The Studentized Range Distribution
Wilcoxon

Distribution of the Wilcoxon Rank Sum Statistic
stats-deprecated

Deprecated Functions in Package stats
window

Time Windows
summary.manova

Summary Method for Multivariate Analysis of Variance
ts.plot

Plot Multiple Time Series
summary.nls

Summarizing Non-Linear Least-Squares Model Fits
ts.union

Bind Two or More Time Series
Uniform

The Uniform Distribution
uniroot

One Dimensional Root (Zero) Finding