I'm having a similar problem , did u get a resolution ?
--
View this message in context:
http://r.789695.n4.nabble.com/Replacing-sets-of-rows-in-matrix-within-a-loop-tp4634658p4648248.html
Sent from the R help mailing list archive at Nabble.com.
__
Thank you Rui, this is indeed much simpler than anything I had thought of
trying, and works perfectly.
From: Rui Barradas [via R] [ml-node+s789695n4634712...@n4.nabble.com]
Sent: 28 June 2012 09:44
To: Natalie Franklin
Subject: Re: Replacing sets of rows in matr
Hello,
You are replacing the values of runif each time through the loop. And
it's not just that, every time through, you are setting outcome[, 1] and
outcome[, 2] to the same values. Simply put, the loop is not needed.
Corrected:
n <- 100 ## patients per trial
trials <- 3 ## 3 trials
med <-
3 matches
Mail list logo