Using aoctool in the right way

4 ビュー (過去 30 日間)
Eric
Eric 2017 年 11 月 15 日
コメント済み: Walter Roberson 2017 年 11 月 17 日
Hi everyone,
I'm interested in using aoctool for some calculations but I can't find that much documentation for the function. I want to compare two groups (with unequel size) and use one covariate. Is it correct that I in the following function:
[h,atab,ctab,outstats] = AOCTOOL(X,Y,G)
Insert data like below with: X being a vector of the data, Y being a vector of covariate (like weight), G being the grouping?
X Y G
2 32 1
6 54 1
3 21 1
...
3 66 2
6 92 2
5 76 2
I really hope that someone can help me with this. Thanks a lot in advance.
Best regards,
Eric
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 11 月 17 日
Note: MATLAB is case-sensitive so you would need to use aoctool instead of AOCTOOL

サインインしてコメントする。

回答 (1 件)

Chris Perkins
Chris Perkins 2017 年 11 月 17 日
Hi Eric,
"aoctool" should work fine for your use case, given your description. The fact that one group might have more elements than the other shouldn't matter. Your 'X', 'Y', & 'G' data seem to be set correctly for "aoctool".
On the documentation page for "aoctool", there is an example that follow's your use case closely that you can look to, using car's weight, MPG, and grouping based on model year:

Community Treasure Hunt

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

Start Hunting!

Translated by