[R] How to try different effect sizes for Fisher's exact test?
kekwu @ending from ucd@vi@@edu
Mon Jul 16 20:46:06 CEST 2018
I am currently working on a simulation, and I would like to see what happens with various effect sizes. How would I test out different effect sizes for the Fisher's exact test with my current code?
# p1<-response in controls
# p2<-response in treated
# Generating random deviates from a Uniform(0,1) distribution
control.year1<-(runif(16, min = 0, max = 1))
treat.year1<-(runif(16, min = 0, max = 1))
#Generating dichotomous response variables for each group
#Summing number of responses from each group
#Perform the Fisher's exact test (one sided) with p<=0.01
f<-fisher.test(fisher,alternative = "greater”)
[[alternative HTML version deleted]]
More information about the R-help