How to use effectsize library In achine Learning
Step 1: Installing Package
install.packages("effectsize") library(effectsize)
Step 2: 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 3: Calculate pooled standard deviation
sd_pooled(data1, data2)
Code
#Step 1: Installing Package
install.packages("effectsize")
library(effectsize)
#Step 2: 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 3: Calculate pooled standard deviation
sd_pooled(data1, data2)
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.