Balanced two-way anova

1 visualización (últimos 30 días)
jason beckell
jason beckell el 25 de Sept. de 2017
Comentada: Image Analyst el 26 de Sept. de 2017
Hello to everybody,
I am new to anova and I have to carry out this simple exercise for a work of mine. I have the following table:
41327 36107(83.37%) 3071 2570(89.55%) 1885 1669(88.54%) \\
48652 9484 (19.53%) 3807 903 (32.72%) 1998 362 (18.12%) \\
49399 1531 (3.1%) 4020 276 (6.87%) 2087 13 (0.62%) \\
1807 1187 (65.69%) 99 68 (68.69%) 49 32 (65.31%) \\
where each row represents a particular environment (say A, B, C, D) and each couple of columns represents, respectively:
1) the total population of class i
2) the proportion of population of class i belonging to environment j (with j \in \{A, B, C, D\}. Hence, in our table we have three populations (say g1, g2, g3).
I would like to compute the global DF, F test value and p value for the Populations, for the Environments and for their interaction (Populations*Environments).
I have understood that I need function anova2, but I have not figured out how to employ it in this case.
Many thanks for your kind attention and my best regards!
Jason.
  1 comentario
Image Analyst
Image Analyst el 26 de Sept. de 2017
I fixed your code but read this for next time.
Also, what is "a work". Do you mean your work, like your job? Or do you mean a homework problem?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Analysis of Variance and Covariance en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by