Re: [R] problem on simulation code (the loop unable to function effectively)

2016-04-18 Thread Jim Lemon
Hi Si Jie, Again, please send questions to the list, not me. Okay, I may have worked out what you are doing. The program runs and produces what I would expect in the rightmost columns of the result "g". You are storing the number of each test for which the p value is less than 0.05. It looks to m

Re: [R] problem on simulation code (the loop unable to function effectively)

2016-04-18 Thread Jim Lemon
Hi Jeem, First, please send questions like this to the help list, not me. I assume that you are in a similar position to sjtan who has been sending almost exactly the same questions. The problem is not in the loops (which look rather familiar to me) but in your initial assignments at the top. For