Re: [R] for loop function output

2010-02-12 Thread Chris Campbell
On Fri, Feb 12, 2010 at 01:26, seydahmet ercan wrote: > Hello all, > I am trying to run a simulation. the simulation presented below. > >> rep=5 >> sr=.10 # selection ratio >> pmin=.10 # minority ratio >> nap=1000 # total number of applicant >> nsle=sr*nap # number of ee selected >> nb=nap*pmin #

Re: [R] for loop function output

2010-02-11 Thread Daniel Malter
Hi, sorry, but I cannot figure out where the five values come from. However, generally you can define an n x 5 matrix (let's call it MATRIX), where n is the number of simulations and 5 is the assumed number of values that each round of the simulation returns. Then assign the five values to the n-t