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