RPy is a Python interface to R package
http://rpy.sourceforge.net
다음처럼 쉽게 p-value를 구할 수 있다.
1 from rpy import *
2 x = [1,2,3,4,5,6,7,8,9,10]
3 y = [2,2,3,3,4,4]
4 result = r.t_test(x,y)
5 print result['p.value']
1 from rpy import *
2 x = [1,2,3,4,5,6,7,8,9,10]
3 y = [2,2,3,3,4,4]
4 result = r.var_test(x,y,alternative='greater')
5 print result['p.value']
CategoryProgramLibrary