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 work.

Best Regards..

firat

Yrd.Doç.Dr.A.Fırat ÖZDEMİR
DEÜ Fen Edebiyat Fakültesi
İstatistik Bölümü
Tel: 232-412 85 52
Belge Geçer: 232-453 42 65
	[[alternative HTML version deleted]]

