search for: lenl

Displaying 1 result from an estimated 1 matches for "lenl".

Did you mean: len
2011 Oct 05
4
SPlus to R
...ld1[i:ncl] + Ep0<-Epower(nc, d, ne, pc, alpha) + } +  ne.old1<-ne + } + ne1<-ne + ### sweeping backward -- ncl:i + ne.old2<-ne.old + ne     <-ne.old + for(i in ncl:1){ + cmin<-cc[1] + cmax<-cc[2] + ### fixed cci<-cmax bug + cci <-1 + lhood<-dbinom((ncl:i)-1,nc,pc[i]) + lenl <-length(lhood) + ne[ncl:i]<-(1+(cci-1)*(lhood/lhood[lenl]))*ne.old2[ncl:i] + Ep0 <-Epower(nc, d, cci*ne, pc, alpha) + while(abs(Ep0[i]-power)>tol1){ + if(Ep0[i]<power) cmin<-cci + else cmax<-cci + cci<-(cmax+cmin)/2 + ne[ncl:i]<-(1+(cci-1)*(lhood/lhood[lenl]))*ne.old2[nc...