[R] Question on Binom.Confint

Göran Broström gor@n@bro@trom @end|ng |rom umu@@e
Fri Sep 14 17:52:49 CEST 2018



On 2018-09-14 17:04, Guo, Fang (Associate) wrote:
> I did use library(binom). However, I was able to use the method "lrt" which is short for likelihood ratio test.

You are right, there is a method "lrt", but it is not mentioned in the 
documentation. (Look at the code.)

Göran

> -----Original Message-----
> From: Jim Lemon [mailto:drjimlemon using gmail.com]
> Sent: Thursday, September 13, 2018 11:50 PM
> To: Guo, Fang (Associate) <FAGuo using cornerstone.com>; r-help mailing list <r-help using 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 using 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 using cornerstone.com<mailto:faguo using 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 using 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.
> ***********************************************************
> ______________________________________________
> R-help using 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.
>




More information about the R-help mailing list