Description Usage Arguments Author(s) See Also Examples
Z-score is a popular term of what is more formally known as
standardized residuals. To calculate the standardized
residuals of a data set, the average value and the standard
deviation of the data value have to be estimated. This can be
done in either a robust way or a non-robust way.
Normally the average and the standard deviation are estimated
using the mean
and sd
functions. These functions
are sensitive to outliers and a more robust estimates can be
obtained by the median
and mad
(square root)
functions.
1 2 |
x |
The |
robust |
If |
... |
Any other arguments |
Henrik Bengtsson
See also mean
(), median
, sd
,
and mad
.
A similar function to zscore
is rstandard()
(see influence.measures
)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.