Ftest: Difference between revisions

From EVRI Test Wiki 02192024
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Bob
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===
Inverse F test and F test.
Inverse F test and F test.
===Synopsis===
===Synopsis===
:fstat = ftest(p,n,d,''flag'')
:fstat = ftest(p,n,d,''flag'')
===Description===
===Description===
fstat = ftest(p,n,d) or fstat = ftest(p,n,d,1) calculates the F statistic fstat given the probability point p and the number of degrees of freedom in the numerator n and denomenator d.
 
fstat = ftest(p,n,d,2) calculates the probability point fstat given the F statistic p and the number of degrees of freedom in the numerator n and denomenator d.
<tt>fstat</tt> = ftest(<tt>p,n,d</tt>) or <tt>fstat</tt> = ftest(<tt>p,n,d,1</tt>) calculates the F statistic <tt>fstat</tt> given the probability point <tt>p</tt> and the number of degrees of freedom in the numerator <tt>n</tt> and denominator <tt>d</tt>.
 
<tt>fstat</tt> = ftest(<tt>p,n,d</tt>,2) calculates the probability point <tt>fstat</tt> given the F statistic <tt>p</tt> and the number of degrees of freedom in the numerator <tt>n</tt> and denominator <tt>d</tt>.
 
====Inputs====
 
* '''p''' = probability point or F statistic, depending upon <tt>flag</tt>.
* '''n''' = number of degrees of freedom in the numerator.
* '''d''' = number of degrees of freedom in the denominator.
 
====Optional Inputs====
 
* '''flag''' = [ {1} | 2 ]; determines mode of function (1 => F test, 2=> inverse F test).
 
====Output====
 
* '''fstat''' = F statistic or probability point, depending upon <tt>flag</tt>.
===Examples===
===Examples===
a = ftest(0.05,5,8); returns the value 3.6875 for a, and
 
a = ftest(3.6875,5,8,2); returns the value 0.050 for a.
<pre>a = ftest(0.05,5,8)
 
a =
  3.6875  
 
a = ftest(3.6875,5,8,2)
 
a =
 
  0.050 </pre>
 
===See Also===
===See Also===
[[chilimit]], [[statdemo]], [[ttestp]]
 
[[chilimit]], [[statdemo]], [[ttestp]], [[anova1w]], [[anova2w]]

Latest revision as of 14:01, 9 October 2008

Purpose

Inverse F test and F test.

Synopsis

fstat = ftest(p,n,d,flag)

Description

fstat = ftest(p,n,d) or fstat = ftest(p,n,d,1) calculates the F statistic fstat given the probability point p and the number of degrees of freedom in the numerator n and denominator d.

fstat = ftest(p,n,d,2) calculates the probability point fstat given the F statistic p and the number of degrees of freedom in the numerator n and denominator d.

Inputs

  • p = probability point or F statistic, depending upon flag.
  • n = number of degrees of freedom in the numerator.
  • d = number of degrees of freedom in the denominator.

Optional Inputs

  • flag = [ {1} | 2 ]; determines mode of function (1 => F test, 2=> inverse F test).

Output

  • fstat = F statistic or probability point, depending upon flag.

Examples

a = ftest(0.05,5,8)

a =
 
  3.6875 

a = ftest(3.6875,5,8,2)

a = 

  0.050 

See Also

chilimit, statdemo, ttestp, anova1w, anova2w