[R] solving equation consisting of factorials

2010-10-30 Thread Shant Ch
Hi, I was trying to solve for m such that, choose(n-1,k-1)+choose(n-2,k-1)+...+choose(n-m+1,k-1) - ck=0 ck is calculated by the way given in the code. Now I solved for m using uniroot but the error messages appeared. n-30 k=3 alpha-0.05 nk-choose(n,k);

Re: [R] solving equation consisting of factorials

2010-10-30 Thread David Winsemius
On Oct 30, 2010, at 9:55 AM, Shant Ch wrote: Hi, I was trying to solve for m such that, choose(n-1,k-1)+choose(n-2,k-1)+...+choose(n-m+1,k-1) - ck=0 ck is calculated by the way given in the code. Now I solved for m using uniroot but the error messages appeared. n-30 k=3 alpha-0.05