search for: dneghyp

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

Did you mean: dghyp
2011 Aug 31
0
Fitting the negative hypergeometric distribution
...data vector) and then test for goodness of fit. However, a search of the R website and R-Help archives threw up only a couple of mentions of the negative hypergeometric... Could anyone be of any help? I thought I might be able to use the fitdistr function in MASS with a densfun something like: dneghyper <- function(x,M,K,n){(choose(M+x,x-1)*choose(K-M+n-x,n-x+1))/choose(K+n-1,n )} but it throws up errors ("initial value in 'vmmin' is not finite") even when I use the actual parameter values or similar, as estimated by another program, for the start values... Maybe I am doin...