Calculate Pooled Standard Deviation Manually
Step 1: Creating Dataset
data1 <- c(21, 19, 19, 8, 8, 10, 11, 13, 15, 15, 16, 17, 7, 6, 6) data2 <- c(10, 11, 13, 13, 15, 17, 17, 19, 20, 22, 24, 25, 27, 29, 29)
Step 2: Finding standard deviation
s1 <- sd(data1) s2 <- sd(data2)
Step 3: Finding sample size
n1 <- length(data1) n2 <- length(data2)
Step 4: Calculate pooled standard deviation
pooled <- sqrt(((n1-1)*s1^2 + (n2-1)*s2^2) / (n1+n1-2))
Code
#Step 1: Creating Dataset
data1 <- c(21, 19, 19, 8, 8, 10, 11, 13, 15, 15, 16, 17, 7, 6, 6)
data2 <- c(10, 11, 13, 13, 15, 17, 17, 19, 20, 22, 24, 25, 27, 29, 29)
#Step 2: Finding standard deviation
s1 <- sd(data1)
s2 <- sd(data2)
#Step 3: Finding sample size
n1 <- length(data1)
n2 <- length(data2)
#Step 4: Calculate pooled standard deviation
pooled <- sqrt(((n1-1)*s1^2 + (n2-1)*s2^2) / (n1+n1-2))
Output
5.789564
How to Calculate Pooled Standard Deviation in R
In this article, we will learn How to Calculate Pooled Standard Deviation in R.
Contact Us