I am using rexp to generate several exponential distributions. I am passing
rexp a vector of rates , r. I am wanting to simulate a sample of size 200
for each rate so the code looks like: rexp(n=200*length(r),rate=r) this
gives me a vector of the random exponential variables, but they are all
disjointed b/c rexp goes through and simulates an exponential variable for
each rate and it does that 200  times, is there any way to get it to do it
the oppisite way,i.e., 200 times in a row for each rate. I have already
tried using a for loop but it is slow.


thanks,

Spencer

	[[alternative HTML version deleted]]

