Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread Reuben Cummings
t 11:02 PM, G. Jay Kerns wrote: > Reuben, > > On Thu, Dec 11, 2008 at 9:28 PM, Reuben Cummings wrote: >> Good point, I actually thought about doing some kind of sampling >> before, but now I think I don't have a choice. Essentially, what I am >> doing is calculating

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread Reuben Cummings
Good point, I actually thought about doing some kind of sampling before, but now I think I don't have a choice. Essentially, what I am doing is calculating possible asset allocation possibilities, e.g. N is the number of available assets and M is the available buckets of money to spend on the asse

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread Reuben Cummings
ranges of n and m? I am expecting values for n to range between 1 and 1e3, while m will range between 1 and 1e6. Reuben On Thu, Dec 11, 2008 at 1:26 PM, Charles C. Berry wrote: > On Thu, 11 Dec 2008, Reuben Cummings wrote: > >> Hi, >> >> This has been asked before b

[R] generate combination multiset (set with repetition)

2008-12-11 Thread Reuben Cummings
uggested, but it produces permuations, not combinations. Additionally, I would like to iterate through each resultant set for large n (similar to the description for getNextSet {pcalg}). Any suggestions? Reuben Cummings __ R-help@r-project.org ma