UN_dispersion_sd: Standard deviation of a matrix

Description Usage Arguments Details Value Author(s) Examples

Description

Standard deviation of a matrix by rows or columns

Usage

1
UN_dispersion_sd(previous.name = "")

Arguments

previous.name

name of the default name in the menu

Details

UNaveragemenu.png

UNdispersionstandarddeviation.png The most used measure for the spread of data is the Standard Deviation(sd(x) in R notation) which should not be mixed up with the theoretical standard deviation sigma of the normal distribution. The standard deviation is very sensitive to outliers; if the distribution of the values is skewed, not only the mean will be biased, but also the standard deviation of the sample, s, will be even more biased since the standard deviation, by definition, is the sum of the squared deviations from the mean. The standard deviation is expressed using the same units of the data. In the case of normal or approximately normal distributions, s is the best measure of spread because it is the most precise estimator for sigma, the population standard deviation; unfortunately in practice the standard deviation is often uncritically used instead of taking into consideration other more robust measures for the spread of the sample values (see below Robust estimators in the Dispersion section). R console syntax: x_sd <- sd(x)

Value

The output is saved in the variable var.dispersion

All

single numeric value

Row wise

numeric vector

Column wise

numeric vector

Author(s)

Riccardo Leardi and Gianmarco Polotti with contributions from Giorgio Marubini.Gruppo di Chemiometria (Divisione di Chimica Analitica della Societa' Chimica Italiana)

Examples

1
2
A<-matrix(1:20,5,4)
UN_dispersion_sd('A')

polgia0/Chemometricmenus documentation built on May 28, 2019, 12:03 p.m.