# stats v3.5.1

## The R Stats Package

R statistical functions.

## Functions in stats

Name | Description | |

Exponential | The Exponential Distribution | |

AIC | Akaike's An Information Criterion | |

FDist | The F Distribution | |

Poisson | The Poisson Distribution | |

Normal | The Normal Distribution | |

ARMAacf | Compute Theoretical ACF for an ARMA Process | |

SSbiexp | Self-Starting Nls Biexponential model | |

Tukey | The Studentized Range Distribution | |

SSfol | Self-Starting Nls First-order Compartment Model | |

TukeyHSD | Compute Tukey Honest Significant Differences | |

Logistic | The Logistic Distribution | |

Lognormal | The Log Normal Distribution | |

Cauchy | The Cauchy Distribution | |

SSasympOff | Self-Starting Nls Asymptotic Regression Model with an Offset | |

Binomial | The Binomial Distribution | |

anova.glm | Analysis of Deviance for Generalized Linear Model Fits | |

anova.lm | ANOVA for Linear Model Fits | |

SSasympOrig | Self-Starting Nls Asymptotic Regression Model through the Origin | |

arima | ARIMA Modelling of Time Series | |

SSweibull | Self-Starting Nls Weibull Growth Curve Model | |

ARMAtoMA | Convert ARMA Process to Infinite MA Process | |

arima.sim | Simulate from an ARIMA Model | |

alias | Find Aliases (Dependencies) in a Model | |

SignRank | Distribution of the Wilcoxon Signed Rank Statistic | |

anova | Anova Tables | |

bandwidth | Bandwidth Selectors for Kernel Density Estimation | |

bartlett.test | Bartlett Test of Homogeneity of Variances | |

biplot.princomp | Biplot for Principal Components | |

birthday | Probability of coincidences | |

Beta | The Beta Distribution | |

contrast | (Possibly Sparse) Contrast Matrices | |

coef | Extract Model Coefficients | |

convolve | Convolution of Sequences via FFT | |

complete.cases | Find Complete Cases | |

cophenetic | Cophenetic Distances for a Hierarchical Clustering | |

HoltWinters | Holt-Winters Filtering | |

contrasts | Get and Set Contrast Matrices | |

Hypergeometric | The Hypergeometric Distribution | |

factanal | Factor Analysis | |

factor.scope | Compute Allowed Changes in Adding to or Dropping from a Formula | |

kernapply | Apply Smoothing Kernel | |

GammaDist | The Gamma Distribution | |

delete.response | Modify Terms Objects | |

dendrapply | Apply a Function to All Nodes of a Dendrogram | |

fft | Fast Discrete Fourier Transform (FFT) | |

family | Family Objects for Models | |

kernel | Smoothing Kernel Objects | |

glm.control | Auxiliary for Controlling GLM Fitting | |

lm.influence | Regression Diagnostics | |

Chisquare | The (non-central) Chi-Squared Distribution | |

lm | Fitting Linear Models | |

SSfpl | Self-Starting Nls Four-Parameter Logistic Model | |

mahalanobis | Mahalanobis Distance | |

SSgompertz | Self-Starting Nls Gompertz Growth Model | |

Wilcoxon | Distribution of the Wilcoxon Rank Sum Statistic | |

glm.summaries | Accessing Generalized Linear Model Fits | |

acf | Auto- and Cross- Covariance and -Correlation Function Estimation | |

make.link | Create a Link for GLM Families | |

medpolish | Median Polish (Robust Twoway Decomposition) of a Matrix | |

Distributions | Distributions in the stats package | |

model.extract | Extract Components from a Model Frame | |

is.empty.model | Test if a Model's Formula is Empty | |

isoreg | Isotonic / Monotone Regression | |

nlm | Non-Linear Minimization | |

Geometric | The Geometric Distribution | |

nextn | Highly Composite Numbers | |

NLSstClosestX | Inverse Interpolation | |

lag | Lag a Time Series | |

pairwise.t.test | Pairwise t tests | |

pairwise.table | Tabulate p values for pairwise comparisons | |

plot.ts | Plotting Time-Series Objects | |

NLSstLfAsymptote | Horizontal Asymptote on the Left Side | |

StructTS | Fit Structural Time Series | |

poisson.test | Exact Poisson tests | |

ppoints | Ordinates for Probability Plotting | |

lag.plot | Time Series Lag Plots | |

loglin | Fitting Log-Linear Models | |

IQR | The Interquartile Range | |

ansari.test | Ansari-Bradley Test | |

KalmanLike | Kalman Filtering | |

anova.mlm | Comparisons between Multivariate Linear Models | |

ppr | Projection Pursuit Regression | |

SSD | SSD Matrix and Estimated Variance Matrix in Multivariate Models | |

print.ts | Printing and Formatting of Time-Series Objects | |

TDist | The Student t Distribution | |

asOneSidedFormula | Convert to One-Sided Formula | |

acf2AR | Compute an AR Process Exactly Fitting an ACF | |

SSasymp | Self-Starting Nls Asymptotic Regression Model | |

ave | Group Averages Over Level Combinations of Factors | |

SSlogis | Self-Starting Nls Logistic Model | |

Multinom | The Multinomial Distribution | |

chisq.test | Pearson's Chi-squared Test for Count Data | |

NLSstAsymptotic | Fit the Asymptotic Regression Model | |

printCoefmat | Print Coefficient Matrices | |

lowess | Scatter Plot Smoothing | |

add1 | Add or Drop All Possible Single Terms to a Model | |

SSmicmen | Self-Starting Nls Michaelis-Menten Model | |

prop.trend.test | Test for trend in proportions | |

cmdscale | Classical (Metric) Multidimensional Scaling | |

qqnorm | Quantile-Quantile Plots | |

NegBinomial | The Negative Binomial Distribution | |

NLSstRtAsymptote | Horizontal Asymptote on the Right Side | |

runmed | Running Medians -- Robust Scatter Plot Smoothing | |

oneway.test | Test for Equal Means in a One-Way Layout | |

aov | Fit an Analysis of Variance Model | |

confint | Confidence Intervals for Model Parameters | |

approxfun | Interpolation Functions | |

Weibull | The Weibull Distribution | |

Uniform | The Uniform Distribution | |

optim | General-purpose Optimization | |

constrOptim | Linearly Constrained Optimization | |

scatter.smooth | Scatter Plot with Smooth Curve Fitted by Loess | |

summary.manova | Summary Method for Multivariate Analysis of Variance | |

summary.lm | Summarizing Linear Model Fits | |

arima0 | ARIMA Modelling of Time Series -- Preliminary Version | |

addmargins | Puts Arbitrary Margins on Multidimensional Tables or Arrays | |

ar | Fit Autoregressive Models to Time Series | |

plot.acf | Plot Autocovariance and Autocorrelation Functions | |

aggregate | Compute Summary Statistics of Data Subsets | |

as.hclust | Convert Objects to Class hclust | |

plot.density | Plot Method for Kernel Density Estimation | |

binom.test | Exact Binomial Test | |

ar.ols | Fit Autoregressive Models to Time Series by OLS | |

biplot | Biplot of Multivariate Data | |

df.residual | Residual Degrees-of-Freedom | |

supsmu | Friedman's SuperSmoother | |

Box.test | Box-Pierce and Ljung-Box Tests | |

diffinv | Discrete Integration: Inverse of Differencing | |

cancor | Canonical Correlations | |

case+variable.names | Case and Variable Names of Fitted Models | |

cor.test | Test for Association/Correlation Between Paired Samples | |

symnum | Symbolic Number Coding | |

deriv | Symbolic and Algorithmic Derivatives of Simple Expressions | |

ts.union | Bind Two or More Time Series | |

cor | Correlation, Variance and Covariance (Matrices) | |

.checkMFClasses | Functions to Check the Type of Variables passed to Model Frames | |

power.anova.test | Power Calculations for Balanced One-Way Analysis of Variance Tests | |

deviance | Model Deviance | |

effects | Effects from Fitted Model | |

embed | Embedding a Time Series | |

filter | Linear Filtering on a Time Series | |

fisher.test | Fisher's Exact Test for Count Data | |

power.prop.test | Power Calculations for Two-Sample Test for Proportions | |

cpgram | Plot Cumulative Periodogram | |

predict.glm | Predict Method for GLM Fits | |

cov.wt | Weighted Covariance Matrices | |

predict.lm | Predict method for Linear Model Fits | |

predict.smooth.spline | Predict from Smoothing Spline Fit | |

tsSmooth | Use Fixed-Interval Smoothing on Time Series | |

weighted.mean | Weighted Arithmetic Mean | |

preplot | Pre-computations for a Plotting Object | |

ecdf | Empirical Cumulative Distribution Function | |

proj | Projections of Models | |

getInitial | Get Initial Parameter Estimates | |

weighted.residuals | Compute Weighted Residuals | |

prop.test | Test of Equal or Given Proportions | |

cutree | Cut a Tree into Groups of Data | |

eff.aovlist | Compute Efficiencies of Multistratum Analysis of Variance | |

glm | Fitting Generalized Linear Models | |

fitted | Extract Model Fitted Values | |

kmeans | K-Means Clustering | |

decompose | Classical Seasonal Decomposition by Moving Averages | |

sd | Standard Deviation | |

kruskal.test | Kruskal-Wallis Rank Sum Test | |

screeplot | Screeplots | |

dendrogram | General Tree Structures | |

lm.summaries | Accessing Linear Model Fits | |

lm.fit | Fitter Functions for Linear Models | |

expand.model.frame | Add new variables to a model frame | |

ls.diag | Compute Diagnostics for lsfit Regression Results | |

dummy.coef | Extract Coefficients in Original Coding | |

dist | Distance Matrix Computation | |

fivenum | Tukey Five-Number Summaries | |

density | Kernel Density Estimation | |

formula.nls | Extract Model Formula from nls Object | |

ftable | Flat Contingency Tables | |

friedman.test | Friedman Rank Sum Test | |

ftable.formula | Formula Notation for Flat Contingency Tables | |

hclust | Hierarchical Clustering | |

loadings | Print Loadings in Factor Analysis | |

extractAIC | Extract AIC from a Fitted Model | |

fligner.test | Fligner-Killeen Test of Homogeneity of Variances | |

ls.print | Print lsfit Regression Results | |

formula | Model Formulae | |

setNames | Set the Names in an Object | |

loess | Local Polynomial Regression Fitting | |

shapiro.test | Shapiro-Wilk Normality Test | |

heatmap | Draw a Heat Map | |

lsfit | Find the Least Squares Fit | |

identify.hclust | Identify Clusters in a Dendrogram | |

mad | Median Absolute Deviation | |

stats-deprecated | Deprecated Functions in Package stats | |

stats-package | The R Stats Package | |

mcnemar.test | McNemar's Chi-squared Test for Count Data | |

terms.object | Description of Terms Objects | |

mantelhaen.test | Cochran-Mantel-Haenszel Chi-Squared Test for Count Data | |

time | Sampling Times of Time Series | |

influence.measures | Regression Deletion Diagnostics | |

mood.test | Mood Two-Sample Test of Scale | |

median | Median Value | |

mauchly.test | Mauchly's Test of Sphericity | |

ks.test | Kolmogorov-Smirnov Tests | |

na.contiguous | Find Longest Contiguous Stretch of non-NAs | |

na.action | NA Action | |

nls.control | Control the Iterations in nls | |

integrate | Integration of One-Dimensional Functions | |

na.fail | Handle Missing Values in Objects | |

nobs | Extract the Number of Observations from a Fit. | |

interaction.plot | Two-way Interaction Plot | |

ksmooth | Kernel Regression Smoother | |

line | Robust Line Fitting | |

loess.control | Set Parameters for Loess | |

listof | A Class for Lists of (Parts of) Model Fits | |

order.dendrogram | Ordering or Labels of the Leaves in a Dendrogram | |

optimize | One Dimensional Optimization | |

logLik | Extract Log-Likelihood | |

plot.isoreg | Plot Method for isoreg Objects | |

makepredictcall | Utility Function for Safe Prediction | |

model.frame | Extracting the Model Frame from a Formula or Fit | |

plot.lm | Plot Diagnostics for an lm Object | |

pairwise.wilcox.test | Pairwise Wilcoxon Rank Sum Tests | |

plot.spec | Plotting Spectral Densities | |

plot.stepfun | Plot Step Functions | |

manova | Multivariate Analysis of Variance | |

rWishart | Random Wishart Distributed Matrices | |

plot.HoltWinters | Plot function for HoltWinters objects | |

model.matrix | Construct Design Matrices | |

C | Sets Contrasts for a Factor | |

r2dtable | Random 2-way Tables with Given Marginals | |

reshape | Reshape Grouped Data | |

model.tables | Compute Tables of Results from an Aov Model Fit | |

sigma | Extract Residual Standard Deviation 'Sigma' | |

residuals | Extract Model Residuals | |

predict | Model Predictions | |

naprint | Adjust for Missing Values | |

naresid | Adjust for Missing Values | |

predict.Arima | Forecast from ARIMA fits | |

numericDeriv | Evaluate Derivatives Numerically | |

monthplot | Plot a Seasonal or other Subseries from a Time Series | |

simulate | Simulate Responses | |

stat.anova | GLM Anova Statistics | |

profile | Generic Function for Profiling Models | |

quade.test | Quade Test | |

offset | Include an Offset in a Model Formula | |

poly | Compute Orthogonal Polynomials | |

power | Create a Power Link Object | |

profile.nls | Method for Profiling nls Objects | |

quantile | Sample Quantiles | |

prcomp | Principal Components Analysis | |

relevel | Reorder Levels of Factor | |

reorder.dendrogram | Reorder a Dendrogram | |

predict.HoltWinters | Prediction Function for Fitted Holt-Winters Models | |

stats-defunct | Defunct Functions in Package stats | |

nlminb | Optimization using PORT routines | |

summary.nls | Summarizing Non-Linear Least-Squares Model Fits | |

summary.princomp | Summary method for Principal Components Analysis | |

princomp | Principal Components Analysis | |

smoothEnds | End Points Smoothing (for Running Medians) | |

print.power.htest | Print Methods for Hypothesis Tests and Power Calculation Objects | |

tsdiag | Diagnostic Plots for Time-Series Fits | |

varimax | Rotation Methods for Factor Analysis | |

nls | Nonlinear Least Squares | |

read.ftable | Manipulate Flat Contingency Tables | |

tsp | Tsp Attribute of Time-Series-like Objects | |

rect.hclust | Draw Rectangles Around Hierarchical Clusters | |

reorder.default | Reorder Levels of a Factor | |

p.adjust | Adjust P-values for Multiple Comparisons | |

sortedXyData | Create a sortedXyData Object | |

replications | Number of Replications of Terms | |

spec.taper | Taper a Time Series by a Cosine Bell | |

pairwise.prop.test | Pairwise comparisons for proportions | |

smooth | Tukey's (Running Median) Smoothing | |

smooth.spline | Fit a Smoothing Spline | |

spectrum | Spectral Density Estimation | |

splinefun | Interpolating Splines | |

start | Encode the Terminal Times of Time Series | |

vcov | Calculate Variance-Covariance Matrix for a Fitted Model Object | |

plot.profile.nls | Plot a profile.nls Object | |

power.t.test | Power calculations for one and two sample t tests | |

summary.aov | Summarize an Analysis of Variance Model | |

summary.glm | Summarizing Generalized Linear Model Fits | |

PP.test | Phillips-Perron Test for Unit Roots | |

plot.ppr | Plot Ridge Functions for Projection Pursuit Regression Fit | |

stl | Seasonal Decomposition of Time Series by Loess | |

toeplitz | Form Symmetric Toeplitz Matrix | |

predict.loess | Predict Loess Curve or Surface | |

se.contrast | Standard Errors for Contrasts in Model Terms | |

predict.nls | Predicting from Nonlinear Least Squares Fits | |

ts-methods | Methods for Time Series Objects | |

selfStart | Construct Self-starting Nonlinear Models | |

stlmethods | Methods for STL Objects | |

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

update.formula | Model Updating | |

weights | Extract Model Weights | |

var.test | F Test to Compare Two Variances | |

t.test | Student's t-Test | |

wilcox.test | Wilcoxon Rank Sum and Signed Rank Tests | |

termplot | Plot Regression Terms | |

spec.pgram | Estimate Spectral Density of a Time Series by a Smoothed Periodogram | |

stepfun | Step Functions - Creation and Class | |

step | Choose a model by AIC in a Stepwise Algorithm | |

ts | Time-Series Objects | |

terms.formula | Construct a terms Object from a Formula | |

terms | Model Terms | |

update | Update and Re-fit a Model Call | |

uniroot | One Dimensional Root (Zero) Finding | |

ts.plot | Plot Multiple Time Series | |

window | Time Windows | |

xtabs | Cross Tabulation | |

No Results! |

## Details

#### Include our badge in your README

```
[![Rdoc](http://www.rdocumentation.org/badges/version/stats)](http://www.rdocumentation.org/packages/stats)
```