Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Running a t test in Matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Sean de Wolski
el 5 de Feb. de 2014
It looks like you'll need to call it twice, once with each of your models.
[h,p] = ttest2(n,n1)
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!