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

R

#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.

Similar Reads

Pooled Standard Deviation

This is a weighted average of standard deviations of two or more groups which are independent....

Method 1: Calculate Pooled Standard Deviation Manually

Step 1: Creating Dataset...

Method 2: Using effectsize library

Step 1: Installing Package...

Conclusion

In this article, we learnt about How to Calculate Pooled Standard Deviation in R. This is a weighted average of standard deviations of two or more groups which are independent. In statistics, it is used to test whether or not the means of two populations are equal....