Learn R Programming

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

stats (version 3.1.3)

The R Stats Package

Description

R statistical functions.

Copy Link

Version

Version

3.1.3

License

Part of R 3.1.3

Maintainer

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

Last Published

December 12th, 2019

Functions in stats (3.1.3)

acf

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

Compute an AR Process Exactly Fitting an ACF
anova.glm

Analysis of Deviance for Generalized Linear Model Fits
approxfun

Interpolation Functions
aggregate

Compute Summary Statistics of Data Subsets
anova

Anova Tables
addmargins

Puts Arbitrary Margins on Multidimensional Tables or Arrays
add1

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

ANOVA for Linear Model Fits
AIC

Akaike's An Information Criterion
bartlett.test

Bartlett Test of Homogeneity of Variances
binom.test

Exact Binomial Test
ARMAtoMA

Convert ARMA Process to Infinite MA Process
ARMAacf

Compute Theoretical ACF for an ARMA Process
arima.sim

Simulate from an ARIMA Model
ar

Fit Autoregressive Models to Time Series
arima

ARIMA Modelling of Time Series
asOneSidedFormula

Convert to One-Sided Formula
arima0

ARIMA Modelling of Time Series -- Preliminary Version
ave

Group Averages Over Level Combinations of Factors
case+variable.names

Case and Variable Names of Fitted Models
.checkMFClasses

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

The Cauchy Distribution
birthday

Probability of coincidences
biplot.princomp

Biplot for Principal Components
chisq.test

Pearson's Chi-squared Test for Count Data
biplot

Biplot of Multivariate Data
Binomial

The Binomial Distribution
coef

Extract Model Coefficients
Chisquare

The (non-central) Chi-Squared Distribution
cutree

Cut a Tree into Groups of Data
delete.response

Modify Terms Objects
constrOptim

Linearly Constrained Optimization
complete.cases

Find Complete Cases
dendrapply

Apply a Function to All Nodes of a Dendrogram
density

Kernel Density Estimation
diffinv

Discrete Integration: Inverse of Differencing
df.residual

Residual Degrees-of-Freedom
cov.wt

Weighted Covariance Matrices
convolve

Convolution of Sequences via FFT
Distributions

Distributions in the stats package
dummy.coef

Extract Coefficients in Original Coding
ecdf

Empirical Cumulative Distribution Function
deviance

Model Deviance
deriv

Symbolic and Algorithmic Derivatives of Simple Expressions
FDist

The F Distribution
eff.aovlist

Compute Efficiencies of Multistratum Analysis of Variance
filter

Linear Filtering on a Time Series
ftable.formula

Formula Notation for Flat Contingency Tables
ftable

Flat Contingency Tables
effects

Effects from Fitted Model
Geometric

The Geometric Distribution
fivenum

Tukey Five-Number Summaries
fitted

Extract Model Fitted Values
embed

Embedding a Time Series
glm.control

Auxiliary for Controlling GLM Fitting
getInitial

Get Initial Parameter Estimates
glm.summaries

Accessing Generalized Linear Model Fits
line

Robust Line Fitting
lag.plot

Time Series Lag Plots
expand.model.frame

Add new variables to a model frame
fligner.test

Fligner-Killeen Test of Homogeneity of Variances
factor.scope

Compute Allowed Changes in Adding to or Dropping from a Formula
identify.hclust

Identify Clusters in a Dendrogram
formula

Model Formulae
influence.measures

Regression Deletion Diagnostics
lsfit

Find the Least Squares Fit
lag

Lag a Time Series
ks.test

Kolmogorov-Smirnov Tests
mahalanobis

Mahalanobis Distance
monthplot

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

Mood Two-Sample Test of Scale
listof

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

Regression Diagnostics
manova

Multivariate Analysis of Variance
ls.print

Print lsfit Regression Results
naprint

Adjust for Missing Values
mantelhaen.test

Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
ls.diag

Compute Diagnostics for lsfit Regression Results
NegBinomial

The Negative Binomial Distribution
nls.control

Control the Iterations in nls
NLSstClosestX

Inverse Interpolation
NLSstLfAsymptote

Horizontal Asymptote on the Left Side
pairwise.wilcox.test

Pairwise Wilcoxon Rank Sum Tests
pairwise.table

Tabulate p values for pairwise comparisons
integrate

Integration of One-Dimensional Functions
friedman.test

Friedman Rank Sum Test
formula.nls

Extract Model Formula from nls Object
KalmanLike

Kalman Filtering
interaction.plot

Two-way Interaction Plot
kernapply

Apply Smoothing Kernel
loess

Local Polynomial Regression Fitting
Logistic

The Logistic Distribution
plot.density

Plot Method for Kernel Density Estimation
plot.acf

Plot Autocovariance and Autocorrelation Functions
r2dtable

Random 2-way Tables with Given Marginals
quade.test

Quade Test
ppoints

Ordinates for Probability Plotting
prcomp

Principal Components Analysis
scatter.smooth

Scatter Plot with Smooth Curve Fitted by Loess
screeplot

Screeplots
smoothEnds

End Points Smoothing (for Running Medians)
IQR

The Interquartile Range
is.empty.model

Test if a Model's Formula is Empty
HoltWinters

Holt-Winters Filtering
sortedXyData

Create a sortedXyData Object
lm.fit

Fitter Functions for Linear Models
lm.summaries

Accessing Linear Model Fits
Hypergeometric

The Hypergeometric Distribution
make.link

Create a Link for GLM Families
makepredictcall

Utility Function for Safe Prediction
na.contiguous

Find Longest Contiguous Stretch of non-NAs
na.fail

Handle Missing Values in Objects
lowess

Scatter Plot Smoothing
Lognormal

The Log Normal Distribution
medpolish

Median Polish of a Matrix
median

Median Value
nextn

Highly Composite Numbers
na.action

NA Action
Multinom

The Multinomial Distribution
nlm

Non-Linear Minimization
plot.ppr

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

Pairwise comparisons for proportions
pairwise.t.test

Pairwise t tests
power.prop.test

Power Calculations for Two-Sample Test for Proportions
predict.smooth.spline

Predict from Smoothing Spline Fit
power

Create a Power Link Object
plot.profile.nls

Plot a profile.nls Object
read.ftable

Manipulate Flat Contingency Tables
preplot

Pre-computations for a Plotting Object
rect.hclust

Draw Rectangles Around Hierarchical Clusters
poisson.test

Exact Poisson tests
predict.lm

Predict method for Linear Model Fits
predict

Model Predictions
power.anova.test

Power Calculations for Balanced One-Way Analysis of Variance Tests
prop.trend.test

Test for trend in proportions
profile.nls

Method for Profiling nls Objects
rWishart

Random Wishart Distributed Matrices
runmed

Running Medians -- Robust Scatter Plot Smoothing
qqnorm

Quantile-Quantile Plots
spectrum

Spectral Density Estimation
SSasympOrig

Self-Starting Nls Asymptotic Regression Model through the Origin
terms

Model Terms
start

Encode the Terminal Times of Time Series
SSweibull

Self-Starting Nls Weibull Growth Curve Model
SSbiexp

Self-Starting Nls Biexponential model
loadings

Print Loadings in Factor Analysis
loess.control

Set Parameters for Loess
var.test

F Test to Compare Two Variances
time

Sampling Times of Time Series
mcnemar.test

McNemar's Chi-squared Test for Count Data
order.dendrogram

Ordering or Labels of the Leaves in a Dendrogram
model.tables

Compute Tables of Results from an Aov Model Fit
nobs

Extract the Number of Observations from a Fit.
NLSstAsymptotic

Fit the Asymptotic Regression Model
optimize

One Dimensional Optimization
p.adjust

Adjust P-values for Multiple Comparisons
predict.HoltWinters

Prediction Function for Fitted Holt-Winters Models
plot.isoreg

Plot Method for isoreg Objects
prop.test

Test of Equal or Given Proportions
reorder.default

Reorder Levels of a Factor
plot.spec

Plotting Spectral Densities
printCoefmat

Print Coefficient Matrices
plot.stepfun

Plot Step Functions
print.power.htest

Print method for power calculation object
PP.test

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

Power calculations for one and two sample t tests
print.ts

Printing and Formatting of Time-Series Objects
smooth.spline

Fit a Smoothing Spline
smooth

Tukey's (Running Median) Smoothing
SSasymp

Self-Starting Nls Asymptotic Regression Model
splinefun

Interpolating Splines
Normal

The Normal Distribution
plot.ts

Plotting Time-Series Objects
numericDeriv

Evaluate Derivatives Numerically
predict.loess

Predict Loess Curve or Surface
Poisson

The Poisson Distribution
predict.nls

Predicting from Nonlinear Least Squares Fits
relevel

Reorder Levels of Factor
reorder.dendrogram

Reorder a Dendrogram
selfStart

Construct Self-starting Nonlinear Models
oneway.test

Test for Equal Means in a One-Way Layout
NLSstRtAsymptote

Horizontal Asymptote on the Right Side
model.matrix

Construct Design Matrices
mauchly.test

Mauchly's Test of Sphericity
varimax

Rotation Methods for Factor Analysis
plot.HoltWinters

Plot function for HoltWinters objects
predict.glm

Predict Method for GLM Fits
replications

Number of Replications of Terms
se.contrast

Standard Errors for Contrasts in Model Terms
sd

Standard Deviation
SignRank

Distribution of the Wilcoxon Signed Rank Statistic
shapiro.test

Shapiro-Wilk Normality Test
SSfol

Self-Starting Nls First-order Compartment Model
summary.aov

Summarize an Analysis of Variance Model
SSD

SSD Matrix and Estimated Variance Matrix in Multivariate Models
summary.glm

Summarizing Generalized Linear Model Fits
tsSmooth

Use Fixed-Interval Smoothing on Time Series
proj

Projections of Models
Tukey

The Studentized Range Distribution
Uniform

The Uniform Distribution
setNames

Set the Names in an Object
uniroot

One Dimensional Root (Zero) Finding
stepfun

Step Functions - Creation and Class
SSmicmen

Self-Starting Nls Michaelis-Menten Model
SSlogis

Self-Starting Nls Logistic Model
stl

Seasonal Decomposition of Time Series by Loess
summary.nls

Summarizing Non-Linear Least-Squares Model Fits
toeplitz

Form Symmetric Toeplitz Matrix
summary.princomp

Summary method for Principal Components Analysis
ts-methods

Methods for Time Series Objects
SSfpl

Self-Starting Nls Four-Parameter Logistic Model
StructTS

Fit Structural Time Series
SSgompertz

Self-Starting Nls Gompertz Growth Model
stlmethods

Methods for STL Objects
TDist

The Student t Distribution
weighted.mean

Weighted Arithmetic Mean
Weibull

The Weibull Distribution
terms.formula

Construct a terms Object from a Formula
Wilcoxon

Distribution of the Wilcoxon Rank Sum Statistic
window

Time Windows
weights

Extract Model Weights
weighted.residuals

Compute Weighted Residuals
C

Sets Contrasts for a Factor
SSasympOff

Self-Starting Nls Asymptotic Regression Model with an Offset
stats-package

The R Stats Package
symnum

Symbolic Number Coding
stats-deprecated

Deprecated Functions in Package stats
ts.union

Bind Two or More Time Series
t.test

Student's t-Test
tsdiag

Diagnostic Plots for Time-Series Fits
update.formula

Model Updating
residuals

Extract Model Residuals
update

Update and Re-fit a Model Call
reshape

Reshape Grouped Data
spec.ar

Estimate Spectral Density of a Time Series from AR Fit
spec.taper

Taper a Time Series by a Cosine Bell
stats-defunct

Defunct Functions in Package stats
stat.anova

GLM Anova Statistics
summary.lm

Summarizing Linear Model Fits
summary.manova

Summary Method for Multivariate Analysis of Variance
ts

Time-Series Objects
ts.plot

Plot Multiple Time Series