[R] Make sign test show test statistics

Johan A. Stenberg johan.stenberg at emg.umu.se
Mon May 14 12:07:53 CEST 2007


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 just the 
P-values. How can I make R return the test statistics?

Best regards,
Johan Stenberg, Umea University, Sweden



More information about the R-help mailing list