Displaying 1 result from an estimated 1 matches for "tp4641422".
Did you mean:
tp4641402
2012 Aug 27
3
How to generate a matrix of Beta or Binomial distribution
...i in 1:10000)
{
Y[i,]=rbinom(n,2,p[i])
}
But it would be nice to do it without using any loops. Is this possible in
R?
Many thanks for great help and suggestions!
Jeff
--
View this message in context: http://r.789695.n4.nabble.com/How-to-generate-a-matrix-of-Beta-or-Binomial-distribution-tp4641422.html
Sent from the R help mailing list archive at Nabble.com.