Size: 106
Comment:
|
← Revision 5 as of 2011-09-08 08:02:54 ⇥
Size: 541
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
RPy is a [Python] interface to [R] package | RPy is a [[Python]] interface to [[R]] package |
Line 5: | Line 5: |
다음처럼 쉽게 p-value를 구할 수 있다. * T-Test {{{#!python from rpy import * x = [1,2,3,4,5,6,7,8,9,10] y = [2,2,3,3,4,4] result = r.t_test(x,y) print result['p.value'] }}} * F-Test {{{#!python from rpy import * x = [1,2,3,4,5,6,7,8,9,10] y = [2,2,3,3,4,4] result = r.var_test(x,y,alternative='greater') # alternative가 없으면 default로 two-sided test가 된다. print result['p.value'] }}} |