Displaying 1 result from an estimated 1 matches for "cmrlciif".
Did you mean:
cmrlci
2008 Aug 18
1
Please help: Limit single row calculation
...ich 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
_________________________________________________________________
[[alternative HTML version deleted]]