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