if I set model as 'linear' in 'anovan', is 'anovan' equivalent to applying respectively 'anova1' to the factors?

1 回表示 (過去 30 日間)
SEO BOIL
SEO BOIL 2022 年 9 月 16 日
回答済み: Jeff Miller 2022 年 9 月 17 日
Hi, I have the data consisting of the 6 factors with the 3 levels of each factor.
If I set model as 'linear' in 'anovan', is the result from applying 'anova1' to those factors respectively equivalent to the result from applying 'anovan' to the data?
The result means 'F-Value' and 'p-Value' in this case.

回答 (1 件)

Jeff Miller
Jeff Miller 2022 年 9 月 17 日
no, those are not equivalent, as you should be able to verify by applying them both to the same dataset. With its default 'linear' model, anovan fits a model that has main effects for all 6 of the factors (among other things, this removes the effects of all factors from error, leaving a common error term that is used for testing all factors). In constrast, anova1 only considers a single factor in its model, so the effects of all of the other 5 unconsidered factors go into the error term. If you did anova1 on each single factor, they would (almost certainly) all have different numerical values for their error terms.

カテゴリ

Help Center および File ExchangeAnalysis 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