ttest2 negative value
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anass John
am 14 Jan. 2019
Kommentiert: Star Strider
am 14 Jan. 2019
Hi all,
having two vectors x and y, I would like to test which one has the smallest mean with ttest2. I saw in an paper describing rapidly the ttest2 function that it could return either 1 (if mean(x) > meay(y)) or 0 (if mean(x)==mean(y)) or -1 (if mean(x)<mean(y)). However, in the official documentation, there is no negative which can be returned .
Are the information I got false ? How can obtained the described return results ? (1 or 0 or -1).
Many thanks
0 Kommentare
Akzeptierte Antwort
Star Strider
am 14 Jan. 2019
It would help to know what MATLAB version (release) you are using. I am not aware that option ever existed.
If you want to specifically test that the first mean is different from, greater than, or less than the second mean, use the 'Tail' (link) name-value pair argument.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!