Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Running a t test in Matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to compare two hypothesis models againist oringal data using a t test.
I need to compare n and n1 and then compare n and n2.
n=105 118 139 164 189 214 240 265 290 316 330 348 363 369 373
n1=105.0000 115.0905 126.1507 138.2738 151.5619 166.1270 182.0918 199.5908 218.7715 239.7954 262.8398 288.0987 315.7850 346.1319 379.3952
n2=105.0000 123.4969 143.9590 166.1440 189.6613 213.9824 238.4763 262.4672 285.3071 306.4456 325.4833 342.1960 356.5293 368.5701 378.5053
I tried putting in the following codes: [n,n1,n2]=ttest2 Error using ttest2 (line 71) Requires at least two input arguments
[n,n1,n2]=ttest2(n,n1,n2) Error using ttest2 (line 110) ALPHA must be a scalar between 0 and 1.
I am not sure what I am missing
0 件のコメント
回答 (1 件)
Sean de Wolski
2014 年 2 月 5 日
It looks like you'll need to call it twice, once with each of your models.
[h,p] = ttest2(n,n1)
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!