AOC tool in Matlab to create an ANCOVA

5 ビュー (過去 30 日間)
Amritha Harikumar
Amritha Harikumar 2018 年 3 月 30 日
回答済み: Adam Danz 2019 年 4 月 23 日
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 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