Clear Filters
Clear Filters

Balanced two-way anova

2 views (last 30 days)
jason beckell
jason beckell on 25 Sep 2017
Commented: Image Analyst on 26 Sep 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 Comment
Image Analyst
Image Analyst on 26 Sep 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?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!