Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (3.6.2) of this package.
Take me there.
stats (version 3.3)
The R Stats Package
Description
R statistical functions.
Copy Link
Link to current version
Version
Version
3.6.2
3.6.1
3.6.0
3.5.3
3.5.2
3.5.1
3.5.0
3.4.3
3.4.1
3.4.0
3.3.3
3.3.2
3.3.1
3.3
3.2.5
3.2.4
3.2.2
3.2.1
3.1.3
3.1.2
3.1.1
@VERSION@
Version
3.3
License
Part of R 3.3
Maintainer
R-core R-core@R-project.org
Last Published
December 12th, 2019
Functions in stats (3.3)
Search all functions
ARMAtoMA
Convert ARMA Process to Infinite MA Process
Beta
The Beta Distribution
ARMAacf
Compute Theoretical ACF for an ARMA Process
Exponential
The Exponential Distribution
FDist
The F Distribution
GammaDist
The Gamma Distribution
Hypergeometric
The Hypergeometric Distribution
Geometric
The Geometric Distribution
KalmanLike
Kalman Filtering
IQR
The Interquartile Range
Chisquare
The (non-central) Chi-Squared Distribution
HoltWinters
Holt-Winters Filtering
AIC
Akaike's An Information Criterion
Multinom
The Multinomial Distribution
Distributions
Distributions in the stats package
Binomial
The Binomial Distribution
Logistic
The Logistic Distribution
NLSstClosestX
Inverse Interpolation
NLSstRtAsymptote
Horizontal Asymptote on the Right Side
Lognormal
The Log Normal Distribution
NLSstAsymptotic
Fit the Asymptotic Regression Model
SSD
SSD Matrix and Estimated Variance Matrix in Multivariate Models
NegBinomial
The Negative Binomial Distribution
NLSstLfAsymptote
Horizontal Asymptote on the Left Side
SSasymp
Self-Starting Nls Asymptotic Regression Model
Cauchy
The Cauchy Distribution
SSbiexp
Self-Starting Nls Biexponential model
SSfpl
Self-Starting Nls Four-Parameter Logistic Model
SSgompertz
Self-Starting Nls Gompertz Growth Model
SSlogis
Self-Starting Nls Logistic Model
SSweibull
Self-Starting Nls Weibull Growth Curve Model
SSasympOff
Self-Starting Nls Asymptotic Regression Model with an Offset
SSmicmen
Self-Starting Nls Michaelis-Menten Model
SSfol
Self-Starting Nls First-order Compartment Model
SSasympOrig
Self-Starting Nls Asymptotic Regression Model through the Origin
Poisson
The Poisson Distribution
Normal
The Normal Distribution
StructTS
Fit Structural Time Series
TukeyHSD
Compute Tukey Honest Significant Differences
TDist
The Student t Distribution
Weibull
The Weibull Distribution
SignRank
Distribution of the Wilcoxon Signed Rank Statistic
Uniform
The Uniform Distribution
addmargins
Puts Arbitrary Margins on Multidimensional Tables or Arrays
add1
Add or Drop All Possible Single Terms to a Model
anova
Anova Tables
anova.glm
Analysis of Deviance for Generalized Linear Model Fits
alias
Find Aliases (Dependencies) in a Model
anova.mlm
Comparisons between Multivariate Linear Models
aggregate
Compute Summary Statistics of Data Subsets
Tukey
The Studentized Range Distribution
anova.lm
ANOVA for Linear Model Fits
approxfun
Interpolation Functions
ar
Fit Autoregressive Models to Time Series
ar.ols
Fit Autoregressive Models to Time Series by OLS
aov
Fit an Analysis of Variance Model
arima
ARIMA Modelling of Time Series
arima.sim
Simulate from an ARIMA Model
ave
Group Averages Over Level Combinations of Factors
ansari.test
Ansari-Bradley Test
bandwidth
Bandwidth Selectors for Kernel Density Estimation
binom.test
Exact Binomial Test
as.hclust
Convert Objects to Class hclust
biplot.princomp
Biplot for Principal Components
asOneSidedFormula
Convert to One-Sided Formula
birthday
Probability of coincidences
case+variable.names
Case and Variable Names of Fitted Models
bartlett.test
Bartlett Test of Homogeneity of Variances
cancor
Canonical Correlations
arima0
ARIMA Modelling of Time Series -- Preliminary Version
Box.test
Box-Pierce and Ljung-Box Tests
.checkMFClasses
Functions to Check the Type of Variables passed to Model Frames
chisq.test
Pearson's Chi-squared Test for Count Data
coef
Extract Model Coefficients
constrOptim
Linearly Constrained Optimization
cmdscale
Classical (Metric) Multidimensional Scaling
confint
Confidence Intervals for Model Parameters
complete.cases
Find Complete Cases
contrasts
Get and Set Contrast Matrices
convolve
Convolution of Sequences via FFT
cov.wt
Weighted Covariance Matrices
cophenetic
Cophenetic Distances for a Hierarchical Clustering
cor
Correlation, Variance and Covariance (Matrices)
contrast
(Possibly Sparse) Contrast Matrices
cor.test
Test for Association/Correlation Between Paired Samples
cutree
Cut a Tree into Groups of Data
dendrapply
Apply a Function to All Nodes of a Dendrogram
delete.response
Modify Terms Objects
dendrogram
General Tree Structures
deriv
Symbolic and Algorithmic Derivatives of Simple Expressions
deviance
Model Deviance
df.residual
Residual Degrees-of-Freedom
density
Kernel Density Estimation
embed
Embedding a Time Series
eff.aovlist
Compute Efficiencies of Multistratum Analysis of Variance
diffinv
Discrete Integration: Inverse of Differencing
effects
Effects from Fitted Model
dist
Distance Matrix Computation
family
Family Objects for Models
factanal
Factor Analysis
factor.scope
Compute Allowed Changes in Adding to or Dropping from a Formula
cpgram
Plot Cumulative Periodogram
fitted
Extract Model Fitted Values
fivenum
Tukey Five-Number Summaries
fft
Fast Discrete Fourier Transform (FFT)
dummy.coef
Extract Coefficients in Original Coding
filter
Linear Filtering on a Time Series
fligner.test
Fligner-Killeen Test of Homogeneity of Variances
formula.nls
Extract Model Formula from nls Object
formula
Model Formulae
fisher.test
Fisher's Exact Test for Count Data
expand.model.frame
Add new variables to a model frame
friedman.test
Friedman Rank Sum Test
getInitial
Get Initial Parameter Estimates
glm.control
Auxiliary for Controlling GLM Fitting
ftable.formula
Formula Notation for Flat Contingency Tables
ftable
Flat Contingency Tables
hclust
Hierarchical Clustering
glm
Fitting Generalized Linear Models
heatmap
Draw a Heat Map
decompose
Classical Seasonal Decomposition by Moving Averages
is.empty.model
Test if a Model's Formula is Empty
integrate
Integration of One-Dimensional Functions
identify.hclust
Identify Clusters in a Dendrogram
interaction.plot
Two-way Interaction Plot
isoreg
Isotonic / Monotone Regression
glm.summaries
Accessing Generalized Linear Model Fits
kernapply
Apply Smoothing Kernel
influence.measures
Regression Deletion Diagnostics
extractAIC
Extract AIC from a Fitted Model
ecdf
Empirical Cumulative Distribution Function
ks.test
Kolmogorov-Smirnov Tests
kmeans
K-Means Clustering
kernel
Smoothing Kernel Objects
kruskal.test
Kruskal-Wallis Rank Sum Test
acf2AR
Compute an AR Process Exactly Fitting an ACF
acf
Auto- and Cross- Covariance and -Correlation Function Estimation
line
Robust Line Fitting
Wilcoxon
Distribution of the Wilcoxon Rank Sum Statistic
lag.plot
Time Series Lag Plots
ksmooth
Kernel Regression Smoother
listof
A Class for Lists of (Parts of) Model Fits
lag
Lag a Time Series
lm.influence
Regression Diagnostics
lowess
Scatter Plot Smoothing
loadings
Print Loadings in Factor Analysis
median
Median Value
mantelhaen.test
Cochran-Mantel-Haenszel Chi-Squared Test for Count Data
make.link
Create a Link for GLM Families
lm
Fitting Linear Models
lm.summaries
Accessing Linear Model Fits
model.extract
Extract Components from a Model Frame
lsfit
Find the Least Squares Fit
mood.test
Mood Two-Sample Test of Scale
logLik
Extract Log-Likelihood
mad
Median Absolute Deviation
manova
Multivariate Analysis of Variance
medpolish
Median Polish of a Matrix
mahalanobis
Mahalanobis Distance
na.fail
Handle Missing Values in Objects
loess.control
Set Parameters for Loess
monthplot
Plot a Seasonal or other Subseries from a Time Series
mauchly.test
Mauchly's Test of Sphericity
model.matrix
Construct Design Matrices
mcnemar.test
McNemar's Chi-squared Test for Count Data
na.action
NA Action
ls.diag
Compute Diagnostics for
lsfit
Regression Results
ls.print
Print
lsfit
Regression Results
naprint
Adjust for Missing Values
nextn
Highly Composite Numbers
makepredictcall
Utility Function for Safe Prediction
loglin
Fitting Log-Linear Models
model.frame
Extracting the Model Frame from a Formula or Fit
model.tables
Compute Tables of Results from an Aov Model Fit
naresid
Adjust for Missing Values
lm.fit
Fitter Functions for Linear Models
na.contiguous
Find Longest Contiguous Stretch of non-NAs
loess
Local Polynomial Regression Fitting
nls.control
Control the Iterations in nls
nobs
Extract the Number of Observations from a Fit.
numericDeriv
Evaluate Derivatives Numerically
optim
General-purpose Optimization
nlminb
Optimization using PORT routines
nlm
Non-Linear Minimization
plot.density
Plot Method for Kernel Density Estimation
oneway.test
Test for Equal Means in a One-Way Layout
pairwise.table
Tabulate p values for pairwise comparisons
plot.isoreg
Plot Method for isoreg Objects
pairwise.t.test
Pairwise t tests
plot.ts
Plotting Time-Series Objects
poly
Compute Orthogonal Polynomials
plot.profile.nls
Plot a profile.nls Object
plot.stepfun
Plot Step Functions
plot.HoltWinters
Plot function for HoltWinters objects
p.adjust
Adjust P-values for Multiple Comparisons
power.t.test
Power calculations for one and two sample t tests
power
Create a Power Link Object
plot.ppr
Plot Ridge Functions for Projection Pursuit Regression Fit
offset
Include an Offset in a Model Formula
princomp
Principal Components Analysis
predict
Model Predictions
print.ts
Printing and Formatting of Time-Series Objects
predict.glm
Predict Method for GLM Fits
plot.acf
Plot Autocovariance and Autocorrelation Functions
pairwise.wilcox.test
Pairwise Wilcoxon Rank Sum Tests
poisson.test
Exact Poisson tests
profile
Generic Function for Profiling Models
ppoints
Ordinates for Probability Plotting
proj
Projections of Models
read.ftable
Manipulate Flat Contingency Tables
preplot
Pre-computations for a Plotting Object
power.anova.test
Power Calculations for Balanced One-Way Analysis of Variance Tests
plot.spec
Plotting Spectral Densities
plot.lm
Plot Diagnostics for an lm Object
prcomp
Principal Components Analysis
quantile
Sample Quantiles
ppr
Projection Pursuit Regression
predict.loess
Predict Loess Curve or Surface
relevel
Reorder Levels of Factor
reshape
Reshape Grouped Data
screeplot
Screeplots
predict.lm
Predict method for Linear Model Fits
predict.Arima
Forecast from ARIMA fits
order.dendrogram
Ordering or Labels of the Leaves in a Dendrogram
prop.test
Test of Equal or Given Proportions
print.power.htest
Print Methods for Hypothesis Tests and Power Calculation Objects
reorder.dendrogram
Reorder a Dendrogram
rect.hclust
Draw Rectangles Around Hierarchical Clusters
PP.test
Phillips-Perron Test for Unit Roots
nls
Nonlinear Least Squares
setNames
Set the Names in an Object
rWishart
Random Wishart Distributed Matrices
prop.trend.test
Test for trend in proportions
replications
Number of Replications of Terms
residuals
Extract Model Residuals
profile.nls
Method for Profiling nls Objects
reorder.default
Reorder Levels of a Factor
se.contrast
Standard Errors for Contrasts in Model Terms
predict.HoltWinters
Prediction Function for Fitted Holt-Winters Models
sd
Standard Deviation
scatter.smooth
Scatter Plot with Smooth Curve Fitted by Loess
predict.nls
Predicting from Nonlinear Least Squares Fits
pairwise.prop.test
Pairwise comparisons for proportions
runmed
Running Medians -- Robust Scatter Plot Smoothing
selfStart
Construct Self-starting Nonlinear Models
printCoefmat
Print Coefficient Matrices
qqnorm
Quantile-Quantile Plots
optimize
One Dimensional Optimization
r2dtable
Random 2-way Tables with Given Marginals
spec.taper
Taper a Time Series by a Cosine Bell
start
Encode the Terminal Times of Time Series
splinefun
Interpolating Splines
smooth.spline
Fit a Smoothing Spline
stat.anova
GLM Anova Statistics
spec.pgram
Estimate Spectral Density of a Time Series by a Smoothed Periodogram
sortedXyData
Create a
sortedXyData
Object
smoothEnds
End Points Smoothing (for Running Medians)
summary.glm
Summarizing Generalized Linear Model Fits
sigma
Extract Residual Standard Deviation 'Sigma'
summary.nls
Summarizing Non-Linear Least-Squares Model Fits
ts-methods
Methods for Time Series Objects
smooth
Tukey's (Running Median) Smoothing
stats-deprecated
Deprecated Functions in Package
stats
summary.manova
Summary Method for Multivariate Analysis of Variance
shapiro.test
Shapiro-Wilk Normality Test
simulate
Simulate Responses
terms.object
Description of Terms Objects
supsmu
Friedman's SuperSmoother
tsdiag
Diagnostic Plots for Time-Series Fits
stats-defunct
Defunct Functions in Package
stats
spectrum
Spectral Density Estimation
stats-package
The R Stats Package
time
Sampling Times of Time Series
spec.ar
Estimate Spectral Density of a Time Series from AR Fit
ts.union
Bind Two or More Time Series
terms.formula
Construct a terms Object from a Formula
t.test
Student's t-Test
update.formula
Model Updating
summary.aov
Summarize an Analysis of Variance Model
ts.plot
Plot Multiple Time Series
symnum
Symbolic Number Coding
tsSmooth
Use Fixed-Interval Smoothing on Time Series
summary.princomp
Summary method for Principal Components Analysis
weighted.mean
Weighted Arithmetic Mean
update
Update and Re-fit a Model Call
tsp
Tsp Attribute of Time-Series-like Objects
ts
Time-Series Objects
varimax
Rotation Methods for Factor Analysis
termplot
Plot Regression Terms
var.test
F Test to Compare Two Variances
uniroot
One Dimensional Root (Zero) Finding
stepfun
Step Functions - Creation and Class
window
Time Windows
weights
Extract Model Weights
stlmethods
Methods for STL Objects
stl
Seasonal Decomposition of Time Series by Loess
xtabs
Cross Tabulation
step
Choose a model by AIC in a Stepwise Algorithm
toeplitz
Form Symmetric Toeplitz Matrix
summary.lm
Summarizing Linear Model Fits
terms
Model Terms
weighted.residuals
Compute Weighted Residuals
wilcox.test
Wilcoxon Rank Sum and Signed Rank Tests
power.prop.test
Power Calculations for Two-Sample Test for Proportions
quade.test
Quade Test
predict.smooth.spline
Predict from Smoothing Spline Fit
C
Sets Contrasts for a Factor
vcov
Calculate Variance-Covariance Matrix for a Fitted Model Object
biplot
Biplot of Multivariate Data