ttest2 negative value

15 ビュー (過去 30 日間)
Anass John
Anass John 2019 年 1 月 14 日
回答済み: Star Strider 2019 年 1 月 14 日
Hi all,
I would like to test if the mean of vector X is lesser or greater or equal to the mean of a vector Y using the statistical hypothesis Student Test with the function ttest2(). I have read in an article that the function "ttest2" can return -1 if mean(X)<mean(Y), or 0 if (mean(X)==mean(Y)) or 1 if(mean(X)>mean(Y)). However, I didn't find how to do this with ttest2 since in the official documentation, there's no negative result.
Any help please ?
Many thanks

採用された回答

Star Strider
Star Strider 2019 年 1 月 14 日
Please see my Answer to your previous question that is a duplicate of this one.

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by