Re: [R] How to complete this code

2015-04-13 Thread Adams, Jean
You will likely get more help answering your question if you provide reproducible code of a simple example of your situation. Jean On Fri, Apr 10, 2015 at 3:42 PM, Mahdiyeh Erfaniyan mahdiyeh.erfani...@gmail.com wrote: Hi, Consider the line below: for(r in a)for (s in a)

[R] How to complete this code

2015-04-10 Thread Mahdiyeh Erfaniyan
Hi, Consider the line below: for(r in a)for (s in a) x=rbind(x,apply(replicate(1000,V(r,s)),1,mean)) V is a vector of (n-1) variables calculated by some rule and is a functions of (r,s). So the line above produces 1000 replicates of V for each (r,s), puts them in a matrix, calculates the