Ftest

From Eigenvector Documentation Wiki
Jump to: navigation, search

Contents

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

Views
Personal tools