[R] How to try different effect sizes for Fisher's exact test?

2018-07-16 Thread Kelly Wu
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? set.seed(23) # p1<-response in controls # p2<-response in treated # Generating random devi

Re: [R] trouble with exiting loop if condition is met

2018-06-29 Thread Kelly Wu
anks for your detailed response! Kelly > On Jun 28, 2018, at 3:18 PM, Jim Lemon wrote: > > " as sequential observations, it > will only require a minor modification. > > Jim > > On Fri, Jun 29, 2018 at 5:53 AM, Kelly Wu wrote: >

[R] trouble with exiting loop if condition is met

2018-06-28 Thread Kelly Wu
I am working on a clinical trial simulation with two groups, treatment and placebo, and the outcome is dichotomous (recovery or no recovery) . I would like to stop my loop if either of my conditions are met: 1) futility - there are no responses to treatment in the treatment group. 2) the p-value i