フィルターのクリア

Can you get residuals from anova1 stats?

8 ビュー (過去 30 日間)
Frank Hansper
Frank Hansper 2017 年 3 月 2 日
回答済み: Ankita Nargundkar 2017 年 3 月 9 日
Hey forum
Im doing statistics on a sample to test if gender have an effect on beer consumption etc.
I use anova1:
[p1,tbl,stats] = anova1(beer,sex,'off');
Now im asked to plot the residuals of this sample in a qq-plot. My advisor said that I could get the residuals from stats, but I havn't succeded in doing so. Is there something I miss?
Frank

回答 (1 件)

Ankita Nargundkar
Ankita Nargundkar 2017 年 3 月 9 日
As far as my understanding goes residual is the difference between the observed values, and the expected values of a particular quantity. The expected values of that quantity can be any statistical measure - but in this case are the sample means.
Now, the stats output parameter will give the means field. This is the mean of each of the observed quantities.You can subtract the observations and the stats.means
Here is an useful link

カテゴリ

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