tableone icon indicating copy to clipboard operation
tableone copied to clipboard

Implement visualization of test statistic, degrees of freedom and corresponding p-value

Open JohannesWiesner opened this issue 3 years ago • 2 comments

TableOne currently seems to visualize the respective hypothesis-tests using whole words (i.e. Two Sample T-test, Chi-squared). It would be nice if the respective test statistic, the degrees of freedom and the p-value could also be printed out in a separate column (sticking to APA convention):

Statistic
--------------------
t(28) = 2.6, p < .05

JohannesWiesner avatar Nov 12 '20 14:11 JohannesWiesner

@JohannesWiesner great suggestion, thanks! we'll take a look at this.

tompollard avatar Nov 12 '20 14:11 tompollard

In the meantime (until this might be implemented in the future), is there a way to already obtain the test statistics and degrees of freedom from the TableOne() instance? I guess, TableOne uses something like scipy.stats.ttest_ind in the backend and the output is somehow saved as an attribute?

JohannesWiesner avatar Nov 17 '20 10:11 JohannesWiesner