search for: 0rand

Displaying 1 result from an estimated 1 matches for "0rand".

Did you mean: brand
2008 Aug 18
1
Please help: Limit single row calculation
...rlo. Before doing repetitive simulations, my function should go through only one survey/row at the time, but instead gives outcomes of all studies/rows, which is not correct, because it uses random numbers choosen from a range in study/row 1. How can I limit y to only go through one row? y<-0rand<-runif(n=1,min=0,max=1)prob<-((cmr-cmrlci)^2)/((cmruci-cmrlci)*(cmr-cmrlci))if (rand<=prob) y<-sqrt(rand*(cmruci-cmrlci)*(cmr-cmrlci)) + cmrlciif (rand>prob) y<-cmruci-sqrt((1-rand)*(cmruci-cmrlci)*(cmruci-cmr))y<-round(y,digits=1)*10 Thank you in advance. Akko Eleveld ____...