degrees of freedom of factors in anovan
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am trying to run two-way ANOVA for an unbalanced design. My factors are species and functional types. There are six species and two functional types. All species except one have the same sample size. I am using anovan function to do this but I am getting zero degrees of freedom (df) for functional types and four df for species. I can't figure out why this happens. I would greatly appreciate any help. Thanks!
My data are in A=[2.1 2.3 2.2 2.1 2.1 2.4 2.5 2 2.2 2.3 1.2 1.3 1.3 1.3 1.1 1 0.9 0.7 1 1.1 1 1.1 1.1 1 1 0.4 0.6 0.5 0.7 0.7 0.6 0.7 0.6 0.7 0.7 0.7 0.8 0.7];
and the group vector I am using is defined as group = {[1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6];... {'d' 'd' 'd' 'd' 'd' 'd' 'd' 'd' 'd' 'd' ... 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' ... 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c' ... 'c' 'c' 'c' 'c' 'c' 'c' 'c' 'c'}}; where the first row show the six species and the second row the functional types, coniferous and deciduous.
3 件のコメント
Tom Hagley
2020 年 4 月 26 日
Also agreed here, I'm getting the same problem. Hopefully someone can shed some light?
Scott MacKenzie
2021 年 5 月 14 日
Tom or Allison: Perhaps post your data and code, and in a new question. I've done several analyses using anovan, and can probably help sort this out.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!