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

7 views (last 30 days)
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.

Answers (3)

Jeff Miller
Jeff Miller on 17 Sep 2022
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.

Betty
Betty on 9 Sep 2025
Edited: Betty on 9 Sep 2025
@geometry dash scratch: Exploring these nuances can really enhance your data analysis skills!

Min
Min on 12 Dec 2025 at 10:15
A literature review is an essential part of academic writing that summarizes, analyzes, and evaluates existing research on a particular topic. Its purpose is to identify gaps in the current knowledge, highlight major themes, and show how your study connects to previous work. A well-structured literature review not only demonstrates your understanding of scholarly sources but also establishes a strong foundation for your own research.
For students who want to improve their writing, it can be extremely helpful to explore literature review examples that demonstrate how to organize sources, compare research findings, and present a coherent narrative. These examples provide guidance on structuring paragraphs, integrating citations smoothly, and maintaining academic tone throughout the review. Learning from well-written samples can make the process clearer and help you develop stronger analytical skills.

Tags

Community Treasure Hunt

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

Start Hunting!