Return the standard deviation of a vector. A measure of shape. It's the expectation of the deviation of a random variable from its mean.
You can opt to remove NA values that exist in the data. According to the R documentation, this uses n-1 in the denominator.
R Example
> sd(1:2)
[1] 0.7071068
> sd(1:2) ^ 2
[1] 0.5
No comments:
Post a Comment
Please help to combat malicious use of the Internet.