Balanced two-way anova

2 次查看(过去 30 天)
jason beckell
jason beckell 2017-9-25
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 个评论
Image Analyst
Image Analyst 2017-9-26
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?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by