Displaying 1 result from an estimated 1 matches for "expceted".
2011 Oct 05
4
SPlus to R
... vector of starting sample size of experiment group
+ # corresonding to rc of 0 to nc*(1-d)
+ # alpha size of test
+ # power target power
+ # cc pre-screen vector of constant c, the range should cover the
+ # the value of cc that has expected power
+ # tol1 the allowance between the expceted power and target power
+ #---------------------------
+ pc<-(0:((1-d)*nc))/nc
+ ncl<-length(pc)
+ ne.old<-ne
+ ne.old1<-ne.old
+ ### sweeping forward
+ for(i in 1:ncl){
+ cmin<-cc[1]
+ cmax<-cc[2]
+ ### fixed cci<-cmax bug
+ cci <-1
+ lhood<-dbinom((i:ncl)-1,nc,pc[i])
+...