[R] Accessing Value of binom.test

Xiaohui Chen chenxh007 at gmail.com
Thu May 29 07:27:57 CEST 2008


binom.test(x=12, n=50, p=12/50, conf.level = 0.90)$estimate

Gundala Viswanath 写道:
> With this line:
>
>   
>> binom.test(x=12, n=50, p=12/50, conf.level = 0.90)
>>     
>
> I get this output:
>
>   
>>         Exact binomial test
>>
>> data:  12 and 50
>> number of successes = 12, number of trials = 50, p-value = 1
>> alternative hypothesis: true probability of success is not equal to 0.24
>> 90 percent confidence interval:
>>  0.1447182 0.3596557
>> sample estimates:
>> probability of success
>>                   0.24
>>     
>
> How can I access ONLY the "probabality of sucess" value?
>
> What's the construct for it?
>
>



More information about the R-help mailing list