Re: [R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-06 Thread Emir Toktar
. EToktar > -Original Message- > From: Marc Schwartz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2008 1:12 PM > To: Spencer Graves > Cc: [EMAIL PROTECTED]; r-help@r-project.org > Subject: Re: [R] optimize simultaneously two binomials > inequalities using nlm(

Re: [R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-06 Thread Emir Toktar
Thanks Mr. Graves for your support. > I saw your post on 7/29, and I have not seen a reply, > so I will attempt a response to the question at the start of > your email: > > obtain the smallest value of 'n' (sample size) satisfying > both inequalities: > > (1-alpha)

Re: [R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-05 Thread Marc Schwartz
Just a quick follow up to Spencer's post, you might want to look at the AcceptanceSampling package on CRAN: http://cran.r-project.org/web/packages/AcceptanceSampling/index.html HTH, Marc Schwartz on 08/05/2008 09:00 AM Spencer Graves wrote: I saw your post on 7/29, and I have not seen a

Re: [R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-05 Thread Spencer Graves
I saw your post on 7/29, and I have not seen a reply, so I will attempt a response to the question at the start of your email: obtain the smallest value of 'n' (sample size) satisfying both inequalities: (1-alpha) <= pbinom(c, n, p1) && pbinom(c, n, p2) <= beta, where alpha, p1,

[R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-04 Thread emir.toktar
Dear R users, I´m trying to optimize simultaneously two binomials inequalities (used in acceptance sampling) which are nonlinear solution, so there is no simple direct solution. Please, let me explain shortly the the problem and the question as following. The objective is to obtain the smallest v

[R] optimize simultaneously two binomials inequalities using nlm

2008-07-29 Thread emir.toktar
Dear R users, I´m trying to optimize simultaneously two binomials inequalities used to acceptance sampling, which are nonlinear solution, so there is no simple direct solution. Please, let me explain shortly the the problem and the question as following. The objective is to obtain the smallest v