[R] Make sign test show test statistics

2007-05-14 Thread Johan A. Stenberg
When I perform a two-tailed sign test with the following simple syntax, binom.test(59,100) R returns a P-value (0.088) but nothing else. As I want the result for a one-tailed test I take P/2 = 0.044). However, the journal to which I've submitted my results requests the test statistics, not

Re: [R] Make sign test show test statistics

2007-05-14 Thread Ted Harding
On 14-May-07 10:07:53, Johan A. Stenberg wrote: When I perform a two-tailed sign test with the following simple syntax, binom.test(59,100) R returns a P-value (0.088) but nothing else. As I want the result for a one-tailed test I take P/2 = 0.044). 1: If you want a 1-sided P-value, use

Re: [R] Make sign test show test statistics

2007-05-14 Thread S Ellison
Johan, Tests return objects of class htest; see ?t.test for a description. binom.test(59,100)$statistic confirms that Ted harding is right about the test statistic; it's just the number of successes. Steve Ellison Johan A. Stenberg [EMAIL PROTECTED] 14/05/2007 11:07:53 When I perform a