Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/linearAlgebra-d.R
Calculates the deviation from the mean.
1 | d(x)
|
x |
Numeric matrix, data frame, or vector. Data matrix. |
The n \times 1 vector of deviations from the mean is given by
\mathbf{d} = \mathbf{x} - \bar{x}
where \mathbf{x} is an n \times 1 column vector and \bar{x} is the mean of \mathbf{x}.
The n \times k matrix of deviations from the mean is given by
\mathbf{D} = \mathbf{X} - \mathbf{1}_{n} \bar{\mathbf{x}}
where \mathbf{X} is an n \times 1 matrix, \mathbf{1}_{n} is an n \times 1 column vector of ones, and \bar{\mathbf{x}} is the k \times 1 mean vector of \mathbf{X}.
A matrix.
Ivan Jacob Agaloos Pesigan
Other Scaling Functions:
deltacapsq()
,
z()
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.