# Comparing two groups using aoctool - p-value for comparison?

3 ビュー (過去 30 日間)
Eric 2018 年 7 月 22 日
コメント済み: Adam Danz 2019 年 4 月 23 日
Hi everyone,
I've been trying to use aoctool to compare two groups with one covariate as follows:
[h,atab,ctab,outstats] = AOCTOOL(X,Y,G)
X being a vector of the data, Y being a vector of covariate, 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
Now I would like to actually just know the p-value for a comparisons between the values in X (divided by group and using the covariate Y). Is it then just to run:
c = multcompare(outstats,0.05);
And if the last value (which should be the p-value) is significant, then the two groups (X) are significantly different when considering the variable (Y)? Or am I missing a step?
Thanks a lot,
Eric
##### 1 件のコメント-1 件の古いコメントを表示-1 件の古いコメントを非表示
Adam Danz 2019 年 4 月 23 日

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

### カテゴリ

Help Center および File ExchangeAnalysis of Variance and Covariance についてさらに検索

R2016a

### Community Treasure Hunt

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

Start Hunting!

Translated by