varDiff: Estimation of discrepancies based on sequential order...

Description Usage Arguments Value Author(s) References See Also

Description

Estimation of discrepancies based on sequential order differences in a vector.

Usage

1
2
3
4
5
6
 ## S3 method for class 'numeric'
varDiff(x, na.rm=FALSE, diff=1L, trim=0, ...)
 ## S3 method for class 'numeric'
sdDiff(x, na.rm=FALSE, diff=1L, trim=0, ...)
 ## S3 method for class 'numeric'
madDiff(x, na.rm=FALSE, diff=1L, trim=0, ...)

Arguments

x

A numeric vector of length N.

na.rm

If TRUE, NAs are excluded, otherwise not.

diff

The positional distance of elements for which the difference should be calculated.

trim

A double in [0,1/2] specifying the fraction of observations to be trimmed from each end of (sorted) x before estimation. If trim=1, then all data points are trimmed.

...

Not used.

Value

Returns a numeric scalar.

Author(s)

Henrik Bengtsson

References

[1] J. von Neumann et al., The mean square successive difference. Annals of Mathematical Statistics, 1941, 12, 153-162.

See Also

See diff().


matrixStats documentation built on May 2, 2019, 4:52 p.m.