search for: myproportions

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

2006 May 22
1
random generation of a factor
Hi everybody Does anybody know a function that generates a factor of length N with K levels given the proportions c(p1, p2,... ,pk)? It would not be too hard to write it for myself, but if there's a preexisting one.. I searched the documentation and the help archive, but could not find anything helpful. > version _ platform i386-pc-mingw32 arch i386