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