search for: choose2

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

Did you mean: choose
2004 Nov 08
4
About 'choose' function
...lo R-users, When I didn't know about the internal 'choose' function, I made such function, 'my.choose' below. But when I used them instead of choose(6000,20), they didn't give me any answer. What is the difference between 'choose', 'my.choose1', and 'my.choose2' below? That is, what is behind 'choose' function and what's the problem using 'prod' or 'gamma' function? Thanks a lot. John ########## > choose(6000,20) [1] 1.455904e+57 > > my.choose1 <- function(x,y) { prod(1:x)/(prod(1:y)*prod(1:(x-y))) } > my...