Re: [R] Finding Stopping time

2008-11-27 Thread Gustaf Rydevik
Hi Debanjan, It would be more likely that you get a response if your question was more clear. Your code is very difficult to read, and it doesn't help that you don't provide any context, or comment your code with ### This is calculating the average kind of statements. What are you trying to do?

[R] Finding Stopping time

2008-11-26 Thread Debanjan Bhattacharjee
Can any one help me to solve problem in my code? I am actually trying to find the stopping index N. So first I generate random numbers from normals. There is no problem in finding the first stopping index. Now I want to find the second stopping index using obeservation starting from the one after