mathematical formula to calculate standard deviation is $SD = (\frac{SSD}{n-1})^{0.5}$
Would like to find SSD and how to write in r ?
SSD = ????
I'll use $\sigma$ for SD to avoid confusion with SSD:
If $\sigma = (\frac{SSD}{n-1})^{0.5}$, then
$\sigma^2 = \frac{SSD}{n-1}$. Therefore:
$SSD = \sigma^2 (n-1)$
ssd <- (sd^2)*(n-1)
. $\endgroup$