Laboratory of Microbial Genomics and Big Data (강원대학교 미생물유전체빅데이터 연구실)

R: Statistics - Chi-Squared Test and Fisher's Exact Test - by Eun Bae Kim (12/01/2018)
 Visits : 497,901 ( Your IP 3.143.24.92 )
 

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
 10: 
# Chi-Square Test ###########################################################
# 600 out of 2,500 genes were involved in metabolism.
TotalGenes   = c(2500, 600)
# 135 out of 250 down-regulated genes were involved in metabolism.
ChangedGenes = c(250, 135)
table = cbind (TotalGenes, ChangedGenes)
table
chisq.test(table)
fisher.test(table)
# Odds Ratio = (135/250)/(600/2500) = 2.25 > 1.0 (expected) --> Strange!!


Figure 1. R: Statistics - Chi-Squared Test and Fisher's Exact Test


Kangwon National University