# stats v3.3.3

## The R Stats Package

R statistical functions.

## Functions in stats

Name | Description | |

aggregate | Compute Summary Statistics of Data Subsets | |

anova.lm | ANOVA for Linear Model Fits | |

addmargins | ||

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

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

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

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

anova.mlm | Comparisons between Multivariate Linear Models | |

AIC | Akaike's An Information Criterion | |

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

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

ar | Fit Autoregressive Models to Time Series | |

ARMAacf | Compute Theoretical ACF for an ARMA Process | |

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

ansari.test | Ansari-Bradley Test | |

approxfun | Interpolation Functions | |

aov | Fit an Analysis of Variance Model | |

arima.sim | Simulate from an ARIMA Model | |

anova | Anova Tables | |

arima | ARIMA Modelling of Time Series | |

ave | Group Averages Over Level Combinations of Factors | |

binom.test | Exact Binomial Test | |

as.hclust | Convert Objects to Class hclust | |

asOneSidedFormula | Convert to One-Sided Formula | |

biplot.princomp | ||

ARMAtoMA | Convert ARMA Process to Infinite MA Process | |

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

Binomial | The Binomial Distribution | |

Beta | The Beta Distribution | |

bandwidth | Bandwidth Selectors for Kernel Density Estimation | |

Exponential | The Exponential Distribution | |

Distributions | Distributions in the stats package | |

FDist | The F Distribution | |

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

Cauchy | The Cauchy Distribution | |

IQR | The Interquartile Range | |

Logistic | The Logistic Distribution | |

Lognormal | The Log Normal Distribution | |

Multinom | The Multinomial Distribution | |

KalmanLike | Kalman Filtering | |

NLSstAsymptotic | Fit the Asymptotic Regression Model | |

GammaDist | The Gamma Distribution | |

Geometric | The Geometric Distribution | |

HoltWinters | Holt-Winters Filtering | |

Hypergeometric | The Hypergeometric Distribution | |

NLSstLfAsymptote | Horizontal Asymptote on the Left Side | |

NegBinomial | The Negative Binomial Distribution | |

Normal | The Normal Distribution | |

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

NLSstRtAsymptote | Horizontal Asymptote on the Right Side | |

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

NLSstClosestX | Inverse Interpolation | |

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

SSasymp | Self-Starting Nls Asymptotic Regression Model | |

Poisson | The Poisson Distribution | |

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

SSbiexp | Self-Starting Nls Biexponential model | |

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

SignRank | Distribution of the Wilcoxon Signed Rank Statistic | |

SSlogis | Self-Starting Nls Logistic Model | |

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

SSgompertz | Self-Starting Nls Gompertz Growth Model | |

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

StructTS | Fit Structural Time Series | |

TDist | The Student t Distribution | |

Uniform | The Uniform Distribution | |

Tukey | The Studentized Range Distribution | |

TukeyHSD | Compute Tukey Honest Significant Differences | |

Wilcoxon | Distribution of the Wilcoxon Rank Sum Statistic | |

Weibull | The Weibull Distribution | |

biplot | Biplot of Multivariate Data | |

birthday | Probability of coincidences | |

coef | Extract Model Coefficients | |

cancor | Canonical Correlations | |

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

cmdscale | Classical (Metric) Multidimensional Scaling | |

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

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

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

complete.cases | Find Complete Cases | |

convolve | Convolution of Sequences via FFT | |

contrasts | Get and Set Contrast Matrices | |

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

cpgram | ||

cophenetic | Cophenetic Distances for a Hierarchical Clustering | |

confint | Confidence Intervals for Model Parameters | |

constrOptim | Linearly Constrained Optimization | |

contrast | (Possibly Sparse) Contrast Matrices | |

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

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

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

cov.wt | Weighted Covariance Matrices | |

diffinv | Discrete Integration: Inverse of Differencing | |

cutree | Cut a Tree into Groups of Data | |

dendrogram | General Tree Structures | |

density | Kernel Density Estimation | |

deviance | Model Deviance | |

decompose | ||

delete.response | Modify Terms Objects | |

deriv | Symbolic and Algorithmic Derivatives of Simple Expressions | |

dummy.coef | Extract Coefficients in Original Coding | |

dist | Distance Matrix Computation | |

filter | Linear Filtering on a Time Series | |

extractAIC | Extract AIC from a Fitted Model | |

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

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

ecdf | Empirical Cumulative Distribution Function | |

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

fitted | Extract Model Fitted Values | |

fivenum | Tukey Five-Number Summaries | |

effects | Effects from Fitted Model | |

ftable | Flat Contingency Tables | |

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

embed | Embedding a Time Series | |

family | Family Objects for Models | |

getInitial | Get Initial Parameter Estimates | |

fft | Fast Discrete Fourier Transform (FFT) | |

glm | Fitting Generalized Linear Models | |

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

isoreg | Isotonic / Monotone Regression | |

formula | Model Formulae | |

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

kmeans | ||

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

identify.hclust | Identify Clusters in a Dendrogram | |

lag.plot | Time Series Lag Plots | |

lag | Lag a Time Series | |

influence.measures | Regression Deletion Diagnostics | |

lm.summaries | Accessing Linear Model Fits | |

lm.fit | Fitter Functions for Linear Models | |

mahalanobis | Mahalanobis Distance | |

nextn | Highly Composite Numbers | |

manova | Multivariate Analysis of Variance | |

makepredictcall | Utility Function for Safe Prediction | |

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

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

factanal | Factor Analysis | |

nlm | Non-Linear Minimization | |

hclust | Hierarchical Clustering | |

heatmap | Draw a Heat Map | |

ks.test | Kolmogorov-Smirnov Tests | |

ksmooth | Kernel Regression Smoother | |

line | Robust Line Fitting | |

nls.control | Control the Iterations in nls | |

nobs | ||

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

loglin | Fitting Log-Linear Models | |

lowess | Scatter Plot Smoothing | |

plot.isoreg | Plot Method for isoreg Objects | |

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

median | Median Value | |

lsfit | Find the Least Squares Fit | |

mad | Median Absolute Deviation | |

lm.influence | Regression Diagnostics | |

lm | Fitting Linear Models | |

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

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

na.fail | Handle Missing Values in Objects | |

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

optim | General-purpose Optimization | |

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

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

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

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

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

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

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

friedman.test | Friedman Rank Sum Test | |

kernapply | Apply Smoothing Kernel | |

kernel | Smoothing Kernel Objects | |

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

ls.diag | Compute Diagnostics for | |

ls.print | ||

loadings | Print Loadings in Factor Analysis | |

loess | Local Polynomial Regression Fitting | |

read.ftable | Manipulate Flat Contingency Tables | |

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

screeplot | Screeplots | |

rect.hclust | Draw Rectangles Around Hierarchical Clusters | |

start | Encode the Terminal Times of Time Series | |

splinefun | Interpolating Splines | |

sd | Standard Deviation | |

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

smooth.spline | Fit a Smoothing Spline | |

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

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

plot.spec | Plotting Spectral Densities | |

plot.HoltWinters | Plot function for HoltWinters objects | |

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

predict.loess | Predict Loess Curve or Surface | |

plot.stepfun | Plot Step Functions | |

prcomp | Principal Components Analysis | |

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

model.matrix | Construct Design Matrices | |

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

monthplot | ||

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

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

optimize | One Dimensional Optimization | |

pairwise.t.test | Pairwise t tests | |

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

plot.ts | Plotting Time-Series Objects | |

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

poisson.test | Exact Poisson tests | |

na.action | NA Action | |

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

numericDeriv | Evaluate Derivatives Numerically | |

plot.acf | Plot Autocovariance and Autocorrelation Functions | |

offset | Include an Offset in a Model Formula | |

predict.Arima | Forecast from ARIMA fits | |

predict | Model Predictions | |

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

poly | Compute Orthogonal Polynomials | |

power | Create a Power Link Object | |

integrate | Integration of One-Dimensional Functions | |

loess.control | Set Parameters for Loess | |

interaction.plot | Two-way Interaction Plot | |

glm.control | Auxiliary for Controlling GLM Fitting | |

glm.summaries | Accessing Generalized Linear Model Fits | |

logLik | Extract Log-Likelihood | |

naresid | ||

naprint | ||

nlminb | Optimization using PORT routines | |

nls | Nonlinear Least Squares | |

profile.nls | Method for Profiling nls Objects | |

reorder.default | Reorder Levels of a Factor | |

profile | Generic Function for Profiling Models | |

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

predict.glm | Predict Method for GLM Fits | |

replications | Number of Replications of Terms | |

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

selfStart | Construct Self-starting Nonlinear Models | |

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

uniroot | One Dimensional Root (Zero) Finding | |

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

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

termplot | Plot Regression Terms | |

weighted.mean | Weighted Arithmetic Mean | |

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

weighted.residuals | Compute Weighted Residuals | |

printCoefmat | Print Coefficient Matrices | |

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

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

rWishart | Random Wishart Distributed Matrices | |

relevel | Reorder Levels of Factor | |

reorder.dendrogram | Reorder a Dendrogram | |

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

summary.glm | Summarizing Generalized Linear Model Fits | |

terms.object | Description of Terms Objects | |

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

reshape | Reshape Grouped Data | |

time | Sampling Times of Time Series | |

quade.test | Quade Test | |

C | Sets Contrasts for a Factor | |

princomp | Principal Components Analysis | |

quantile | Sample Quantiles | |

ts.plot | Plot Multiple Time Series | |

ts | Time-Series Objects | |

residuals | Extract Model Residuals | |

stats-defunct | Defunct Functions in Package | |

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

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

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

qqnorm | Quantile-Quantile Plots | |

sigma | Extract Residual Standard Deviation 'Sigma' | |

sortedXyData | Create a | |

simulate | Simulate Responses | |

stat.anova | GLM Anova Statistics | |

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

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

spectrum | Spectral Density Estimation | |

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

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

ppr | Projection Pursuit Regression | |

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

plot.ppr | ||

preplot | Pre-computations for a Plotting Object | |

ppoints | Ordinates for Probability Plotting | |

summary.lm | Summarizing Linear Model Fits | |

toeplitz | Form Symmetric Toeplitz Matrix | |

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

update.formula | Model Updating | |

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

proj | Projections of Models | |

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

ts-methods | Methods for Time Series Objects | |

shapiro.test | Shapiro-Wilk Normality Test | |

setNames | Set the Names in an Object | |

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

stepfun | Step Functions - Creation and Class | |

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

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

weights | Extract Model Weights | |

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

terms | Model Terms | |

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

window | Time Windows | |

xtabs | Cross Tabulation | |

step | ||

varimax | Rotation Methods for Factor Analysis | |

stlmethods | Methods for STL Objects | |

stl | Seasonal Decomposition of Time Series by Loess | |

stats-deprecated | Deprecated Functions in Package | |

stats-package | ||

vcov | ||

tsdiag | Diagnostic Plots for Time-Series Fits | |

symnum | Symbolic Number Coding | |

supsmu | Friedman's SuperSmoother | |

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

No Results! |

## Details

#### Include our badge in your README

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