Why "Error using ttest2 () ALPHA must be a scalar between 0 and 1." appears when I am trying to define the ttest2 to be one tailed test?
4 views (last 30 days)
Show older comments
Eli Borodach
on 21 Mar 2016
Answered: Star Strider
on 21 Mar 2016
Hi All,
I want to get the p-value for a 2 means (and 2 variances) t-test. I tried to define my test to be right tailed test, according to: http://www.mathworks.com/help/stats/ttest2.html
This is the line:
[dummay, p_walls] = ttest2(percent_touching_wall_not_significant,percent_touching_wall_significant,'Tail','Right');
However, it crashes:
Error using ttest2 () ALPHA must be a scalar between 0 and 1.
What is the connection to Alpha? Any Help would be highly appreciated
Thanks in Advance
0 Comments
Accepted Answer
Star Strider
on 21 Mar 2016
The current online documentation is for R2016a, and would support they syntax you’re using.
Type:
doc ttest2
in your Command Window to be certain the same syntax is supported in the version you’re using.
0 Comments
More Answers (0)
See Also
Categories
Find more on Hypothesis Tests in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!