[R] how to generate a set of random numbers that sum to 1 with uniform distribution of elements

Bärbel baerbel at latnet.lv
Wed Nov 7 14:02:10 CET 2012


Hi,
I am looking for a way to generate a matrix of random numbers in a way that
each row of the matrix would sum to 1 and that the numbers in the columns of
the matrix would have a uniform distribution. So far I have found several
ways to create random numbers that would sum to 1, but then the distribution
of the individual elements is more or less skewed - there are much more
small numbers than larger ones. 
Any help and suggestions?
- Bärbel



--
View this message in context: http://r.789695.n4.nabble.com/how-to-generate-a-set-of-random-numbers-that-sum-to-1-with-uniform-distribution-of-elements-tp4648695.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list