p value

 

ttest_p(A, B), calculate a t-test’s p-value between a numeric variable and a binary variable.

chi_p (A, B), calculate the p-value of chi-square test on binary variable A and binary variable B

fisher_p (A, B), calculate the p-value for Fisher’s test on multi-categorical variable A and numeric variable B


A

1

[1,2,3,4,5,6,7,8,9,10]

2

[1,0,1,1,1,0,0,1,0,1]

3

[1,0,1,0,1,0,0,0,0,1]

4

[q,d,a,a,d,q,d,f,g,s]

5

=ttest_p(A1,A2)

6

=chi_p(A2,A3)

7

=fisher_p(A4,A1)

A1 Numeric variable

A2 Binary variable

A3 Binary variable

A4 Multi-categorical variable

A5 Calculate the t-test’s p value between A1 and A2

A6 Calculate the p-value of chi-square test on A2 and A3

A7 Calculate the p-value for Fisher’s test on A4 and A1