AOC tool in Matlab to create an ANCOVA

5 次查看(过去 30 天)
Hello,
I am trying to use the 'aoc tool' in MATLAB to create an ANCOVA model with 3 independent variables, one dependent variables, and one covariate. The help toolbox for this function isn't very clear on how to add the covariate. Could someone please help me on how to set this up with an example? Thank you!

回答(1 个)

Adam Danz
Adam Danz 2019-4-23
The aoctool() only allows for one grouping variable. Instead, anovan() might be an option for what you're describing.
anovan() is an n-way analysis of variance allowing for multiple grouping variables. When at least one of those grouping variables are labeled as a continuous variable, an ANCOVA is performed (Matlab calls it ANOCOVA, same thing).
An example of this useage is found here in Matlab's documentation.

类别

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