Learn R Programming

ChemoSpec (version 3.0-1)

seXy: Functions to Compute Measures of Central Tendency and Spread. seX!

Description

These functions compute various measures of central tendency and spread. These functions return a vector containing the measure of central tendency, as well as that measure +/- the requested spread. seX is a little different from the others in that it simply returns the standard error of x, hence seX. Haven't we always needed a function for seX?

Usage

seXy(x)
seXy95(x)
seXyMad(x)
seXyIqr(x)
seX(x)

Arguments

x
A vector of numeric values whose measure of central tendency and spread are to be computed.

Value

  • For all but seX, a vector of 3 numeric values, giving the measure of central tendency, that measure + the spread, and that measure - the spread. So for example, sd gives the mean +/- the standard deviation. For seX, a single value giving the standard error of x.

Details

These functions include na.omit. seXy returns the mean =- the standard error. seXy95 returns the mean =- the 95

References

https://github.com/bryanhanson/ChemoSpec

Examples

Run this code
x <- rnorm(100)
seX(x)
seXy(x)
seXy95(x)
seXyMad(x)
seXyIqr(x)

Run the code above in your browser using DataLab