search for: onesampb

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

2010 Jul 19
1
Missing value
Hi, i have such a code tau<-0 for (i in 1:10) { x<-rnorm(20,0,1) # t1=onesampb(x,est=tauloc,SEED=F)$conf.interval if(t1[1]>0 ||t1[2]<0)tau=tau+1 } print (tau) this code gives me Error in if (t1[1] > 0 || t1[2] < 0) tau = tau + 1 : missing value where TRUE/FALSE needed what can be done with such a warning message? i tried x<-x[!is.na(x)] but didnt wor...