Learn R Programming

matrixStats (version 0.8.5)

varDiff: Estimation of discrepancies based on sequential order differences in a vector

Description

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

Usage

varDiff(x, na.rm=FALSE, diff=1, ...)
 sdDiff(x, na.rm=FALSE, diff=1, ...)
 madDiff(x, na.rm=FALSE, diff=1, ...)

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.
...
Not used.

Value

References

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

See Also

See diff().