Hi, I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! Fang Guo Associate CORNERSTONE RESEARCH 699 Boylston Street, 5th Floor Boston, MA 02116-2836 617.927.3042 direct faguo at cornerstone.com<mailto:faguo at cornerstone.com> www.cornerstone.com<http://www.cornerstone.com/> *********************************************************** Warning: This email may contain confidential or privileged information intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, please understand that any disclosure, copying, distribution, or use of the contents of this email is strictly prohibited. *********************************************************** [[alternative HTML version deleted]]
> On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote: > > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks!First you need to tell use where you are getting Binom.Confint. Error: object 'Binom.Confint' not found -- David,> > > Fang Guo > Associate > > CORNERSTONE RESEARCH > 699 Boylston Street, 5th Floor > Boston, MA 02116-2836 > 617.927.3042 direct > faguo at cornerstone.com<mailto:faguo at cornerstone.com> > > www.cornerstone.com<http://www.cornerstone.com/> > > > *********************************************************** > Warning: This email may contain confidential or privileged information > intended only for the use of the individual or entity to whom it is > addressed. If you are not the intended recipient, please understand > that any disclosure, copying, distribution, or use of the contents > of this email is strictly prohibited. > *********************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law
On 09/14/2018 08:15 AM, Guo, Fang (Associate) wrote:> Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). > For likelihood ratio test, I'd like to ask how you define the upper > limit when the frequency of successes is zero. Thanks!Point 1: This question is inappropriate for this list, since it is about statistical theory and not about R syntax and programming. Point 2: Where did you find the function Binom.Confint()? I can find no such function anywhere. I did manage to locate a function binom.confint() (note the lower case "b" and "c") but it does not have an argument "method". Please do not expect those whom you are addressing to be telepathic. Point 3: Having "method"=lrt in the call is decidedly weird. Perhaps you meant method="lrt"; this is entirely different. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
In what package? Binomial confidence interval functions are in several. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Sep 13, 2018 at 6:38 PM Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote:> > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! > > > Fang Guo > Associate > > CORNERSTONE RESEARCH > 699 Boylston Street, 5th Floor > Boston, MA 02116-2836 > 617.927.3042 direct > faguo at cornerstone.com<mailto:faguo at cornerstone.com> > > www.cornerstone.com<http://www.cornerstone.com/> > > > *********************************************************** > Warning: This email may contain confidential or privileged information > intended only for the use of the individual or entity to whom it is > addressed. If you are not the intended recipient, please understand > that any disclosure, copying, distribution, or use of the contents > of this email is strictly prohibited. > *********************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
On 2018-09-13 20:58, David Winsemius wrote:>> On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote: >> >> Hi, >> >> I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! > First you need to tell use where you are getting Binom.Confint. > > Error: object 'Binom.Confint' not found >????? sos::findFn('Binom.Confint') found NO function named "Binom.Confint", but it did find two named "binom.confint", one in the "binom" package and the other in the "NNTbiomarker" package. The same search in "rdocumentation.org" returned the same results. The indicated command would not work in either. ????? Spencer
Hi Fang, Let's assume that you are using the "binom.confint" function in the "binom" package and you have made a spelling mistake or two. This function employs nine methods for estimating the binomial confidence interval. Sadly, none of these is "lrt". The zero condition is discussed in the help page for four of these methods. Assuming you want to use another method, you will have to look up the method. A good start is: https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval Jim On Fri, Sep 14, 2018 at 11:38 AM Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote:> > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! > > > Fang Guo > Associate > > CORNERSTONE RESEARCH > 699 Boylston Street, 5th Floor > Boston, MA 02116-2836 > 617.927.3042 direct > faguo at cornerstone.com<mailto:faguo at cornerstone.com> > > www.cornerstone.com<http://www.cornerstone.com/> > > > *********************************************************** > Warning: This email may contain confidential or privileged information > intended only for the use of the individual or entity to whom it is > addressed. If you are not the intended recipient, please understand > that any disclosure, copying, distribution, or use of the contents > of this email is strictly prohibited. > *********************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
It's method="lrt" and I used the "binom" package. -----Original Message----- From: Rolf Turner [mailto:r.turner at auckland.ac.nz] Sent: Thursday, September 13, 2018 10:02 PM To: Guo, Fang (Associate) <FAGuo at cornerstone.com> Cc: r-help at R-project.org Subject: Re: [FORGED] [R] Question on Binom.Confint On 09/14/2018 08:15 AM, Guo, Fang (Associate) wrote:> Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). > For likelihood ratio test, I'd like to ask how you define the upper > limit when the frequency of successes is zero. Thanks!Point 1: This question is inappropriate for this list, since it is about statistical theory and not about R syntax and programming. Point 2: Where did you find the function Binom.Confint()? I can find no such function anywhere. I did manage to locate a function binom.confint() (note the lower case "b" and "c") but it does not have an argument "method". Please do not expect those whom you are addressing to be telepathic. Point 3: Having "method"=lrt in the call is decidedly weird. Perhaps you meant method="lrt"; this is entirely different. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 *********************************************************** Warning: This email may contain confidential or privileged information intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, please understand that any disclosure, copying, distribution, or use of the contents of this email is strictly prohibited. ***********************************************************
I used library(binom). -----Original Message----- From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: Thursday, September 13, 2018 10:04 PM To: Guo, Fang (Associate) <FAGuo at cornerstone.com> Cc: r-help-request at r-project.org; R-help <r-help at r-project.org> Subject: Re: [R] Question on Binom.Confint In what package? Binomial confidence interval functions are in several. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Sep 13, 2018 at 6:38 PM Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote:> > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! > > > Fang Guo > Associate > > CORNERSTONE RESEARCH > 699 Boylston Street, 5th Floor > Boston, MA 02116-2836 > 617.927.3042 direct > faguo at cornerstone.com<mailto:faguo at cornerstone.com> > > www.cornerstone.com<http://www.cornerstone.com/> > > > *********************************************************** > Warning: This email may contain confidential or privileged information > intended only for the use of the individual or entity to whom it is > addressed. If you are not the intended recipient, please understand > that any disclosure, copying, distribution, or use of the contents of > this email is strictly prohibited. > *********************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.*********************************************************** Warning: This email may contain confidential or privileged information intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, please understand that any disclosure, copying, distribution, or use of the contents of this email is strictly prohibited. ***********************************************************
I did use library(binom). However, I was able to use the method "lrt" which is short for likelihood ratio test. -----Original Message----- From: Jim Lemon [mailto:drjimlemon at gmail.com] Sent: Thursday, September 13, 2018 11:50 PM To: Guo, Fang (Associate) <FAGuo at cornerstone.com>; r-help mailing list <r-help at r-project.org> Subject: Re: [R] Question on Binom.Confint Hi Fang, Let's assume that you are using the "binom.confint" function in the "binom" package and you have made a spelling mistake or two. This function employs nine methods for estimating the binomial confidence interval. Sadly, none of these is "lrt". The zero condition is discussed in the help page for four of these methods. Assuming you want to use another method, you will have to look up the method. A good start is: https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval Jim On Fri, Sep 14, 2018 at 11:38 AM Guo, Fang (Associate) <FAGuo at cornerstone.com> wrote:> > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is zero. Thanks! > > > Fang Guo > Associate > > CORNERSTONE RESEARCH > 699 Boylston Street, 5th Floor > Boston, MA 02116-2836 > 617.927.3042 direct > faguo at cornerstone.com<mailto:faguo at cornerstone.com> > > www.cornerstone.com<http://www.cornerstone.com/> > > > *********************************************************** > Warning: This email may contain confidential or privileged information > intended only for the use of the individual or entity to whom it is > addressed. If you are not the intended recipient, please understand > that any disclosure, copying, distribution, or use of the contents of > this email is strictly prohibited. > *********************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.*********************************************************** Warning: This email may contain confidential or privileged information intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, please understand that any disclosure, copying, distribution, or use of the contents of this email is strictly prohibited. ***********************************************************