search for: ecart

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

Did you mean: cart
2008 Oct 21
1
Simulation of data
Hi listers, I am working on a program of statistical analysis of simulated data and I've been searching the error at the program, but I didn't find it! It is something about the WHILE procedure, the error says: Error in while (ecart >= d) { : missing value where TRUE/FALSE needed Thanks in advance! M?rcio k<-100 d<-0.00112 z<-rnorm(100, 0, 1) prop<-rep(0,100) for (i in 1:100){ if (z[i]>1.75){ prop[i]<-1} else{prop[i]<-0}} proportion<-mean(prop) ecart<-sqrt((proportion*(1-proportion))/k) whil...