search for: sourcedive

Displaying 1 result from an estimated 1 matches for "sourcedive".

2011 Oct 10
2
How to draw 4 random weights that sum up to 1?
...-c but this kind of distorts the results, right? Would the following be a good approach? w <- sample(1:100, 4, replace=TRUE) w <- w/sum(w) I'd prefer a general algorithm-kind of answer to a specific R function (if there is any). Although a function name would help too, if I can sourcedive. Thanks in advance, Alex