scipy: Missing degree of freedom parameter in return value from `stats.ttest_ind`
I should mention first that this is an enhancement request rather than a bug issue.
The return type of the stats.ttest_ind
function, testing for equal means two samples, comprises the t statistic and its associated p value. However, the degree of freedom parameter, computed in the function to estimate the p value from the t statistic, is missing in the return type, although it could be useful to the user (it is to me for instance).
In the distantly related issue, the issue author points out to the R function performing the t test (factorized in one function instead of 3 functions, depending on function arguments). Efforts could be combined to factorize the functions and enhance the return type by getting inspired by the R function (other values could be useful for the user).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 18 (11 by maintainers)
@mdhaber I’d be interested but I am not sure I will find time in the coming weeks. I will try my best to find a slot in the coming month or so. It’d be a first time for me (looking now at https://scipy.github.io/devdocs/dev/hacking.html and https://scipy.github.io/devdocs/dev/dev_quickstart.html#dev-quickstart), I’ll get back here if I need further guidance. Of course if someone else does it in the mean time, just mention it here so that I don’t duplicate the effort.