Can Matlab statistics toolbox look up z/t/z standard tables?

9 ビュー (過去 30 日間)
Helen Kirby
Helen Kirby 2016 年 9 月 9 日
編集済み: Walter Roberson 2016 年 9 月 11 日
I recently plowed through how to do an ANOVA analysis. When I tried to do this via Matlab I found the calculated F quite easily with the anova1(y) function. The next step is to look up the critical F from the standard table (at the back of all high school text books on the subject). I was told that this is not possible!!!! That cannot be true can it? Those standard tables are fundamental to statistics. The person helping me at ML was very clever and found a way of doing this via an equation but is the inability to look up a standard table really not possible in ML?

採用された回答

Helen Kirby
Helen Kirby 2016 年 9 月 10 日
Thank you very much SS, that really helped.
  3 件のコメント
Helen Kirby
Helen Kirby 2016 年 9 月 11 日
編集済み: Walter Roberson 2016 年 9 月 11 日
OK, here is a little program which will enable you to get Fc after an ANOVA analysis (which gives you Fs amongst other things):
%%Let us find some Fc's given v1 v2 and alpha
alpha=.05;
prob=1-alpha;
%%input the degrees of freedom
prompt = 'Enter v1: ';
v1=input(prompt)
prompt = 'Enter v2: ';
v2=input(prompt)
%Now get Fc
Fc=finv(prob,v1,v2)
Star Strider
Star Strider 2016 年 9 月 11 日
ttl = 'Inverse \itF\rm-distribution';
dfn = inputdlg('Enter numerator degrees of freedom: ', ttl);
nu1 = str2num(dfn{:});
nfn = inputdlg('Enter denominator degrees of freedom: ', ttl);
nu2 = str2num(nfn{:});
prob = inputdlg('Enter probatility (as decimal fraction, not percent): ', ttl);
pr = str2num(prob{:});
cv = finv(pr,nu1,nu2);
CreateStruct.Interpreter = 'tex';
CreateStruct.WindowStyle = 'modal';
msgbox(sprintf('\\itF\\rm_{(%d,%d)} \\itp\\rm %.3f, CV = %.3f ', nu1, nu2, pr, cv), 'Value',CreateStruct)

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

その他の回答 (1 件)

Star Strider
Star Strider 2016 年 9 月 10 日
I deleted my original Answer (I delete all my Answers if they are not Accepted) so I’ll mention here that I (apparently correctly) linked you to finv and the other appropriate functions that calculate the other distributions and their inverses that you asked about. I left it to you to discover the functions most appropriate to what you need to do, since I was not certain what it was.
  2 件のコメント
Helen Kirby
Helen Kirby 2016 年 9 月 11 日
Yes, yes, you did indeed include finv. It was I who did not associate an inversion with what I was trying to do (still don't, but never mind) thanks to your guidance all is well. I am trying to Accept your answer, but it seems to be Accepted, I'll try again. Bye.
Star Strider
Star Strider 2016 年 9 月 11 日
You have to un-Accept your own Answer first.

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

Community Treasure Hunt

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

Start Hunting!

Translated by