Code covered by the BSD License  

Highlights from
adjPF

  • adjPF(X,F) ADJPF Adjustment of the F statistic by Epsilon on Repeated Measures ANOVA.
  • adjPF(X,F) ADJPF Adjustment of the F statistic by Epsilon on Repeated Measures ANOVA.
  • epsB(X) EPBG Box's conservative epsilon.
  • epsGG(X) EPSGG Greenhouse-Geisser epsilon.
  • epsGG(X) EPSGG Greenhouse-Geisser epsilon.
  • epsHF(X) EPSHF Huynh-Feldt epsilon.
  • epsHF(X) EPSHF Huynh-Feldt epsilon.
  • View all files

4.0

4.0 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 20.55 KB File ID: #12871

adjPF

by Antonio Trujillo-Ortiz

 

02 Nov 2006 (Updated 20 Dec 2006)

Adjustment of the F statistic by Epsilon on Repeated Measures ANOVA.

| Watch this File

File Information
Description

Sphericity is an assumption of repeated measure ANOVA. It means that the variance-covariance structure of the repeated measure ANOVA follows a certain pattern. Sphericity is, in a nutshell, that the variances of the differences between the repeated measurements should be about the same. Violations of the sphericity assumption lead to biased P-values. The alpha error of a test may be set at 5, but the test may be actually rejecting the null hypothesis 10 of the time. This raises doubts of the conclusions of the repeated measure ANOVA.
In repeated measure experiments the same subjects are tested multiple times under different conditions. It is a good idea to check if the responses made under some conditions are correlated more closely than responses made under other conditions.
Box (1954) showed that if the sphericity assumption is not met, then the F ratio is positively biased (we are rejecting felasely too often). According to Greenhouse and Geisser (1959), the extent to which the covariance matrix deviates from sphericity is reflected in a parameter called epsilon. Epsilon is then used to adjust for the potential bias in the F statistic.
To adjust for the positive bias it is suggested altering the degrees of freedom of the F-statistic. Both adjustements estimate epsilon and then multiply the numerator and denominator degrees of freedom by this estimate before determining significance levels for the F-tests. Significance levels associated with the adjusted tests are labeled adjP > F on the output.

Syntax: function adjPF(X,F)

Inputs:
X - Input matrix can be a data matrix (size n-data x k-treatments)
F - Observed (calculated) F statistic value

The adjustment of the F statistic can be by Epsilon menu for:
1) Greenhouse-Geisser
2) Huynh-Feldt
3) Box's conservative

Output:
p - adjusted P-value.

Acknowledgements
This submission has inspired the following:
Huynh-Feldt epsilon general procedure
Required Products Statistics Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
22 Nov 2006 pi over2

could you please add this to your RMOVA1 and RMOVA2 codes?

30 Jul 2009 Claudia

Is it possible to couple this function to RMAOV1MS so that the returned p-value is corrected?
I want to use the adjustment in an univariate design with 2 groups measured across time, and I don't see how to apply this function to this data otherwise.
Thanks!

Claudia

23 Mar 2010 David Groppe  
Please login to add a comment or rating.
Updates
06 Nov 2006

It was added an appropriate format to cite this file.

20 Dec 2006

It was added to options menu the F-adjustement for the Box's conservative epsilon (it is reported its value). Also, P-value was modified as Prob > F.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
probability Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
f adjustment Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
greenhousegeisser Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
huynhfeldt Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
box Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
epsilon Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07
repeated measu Antonio Trujillo-Ortiz 22 Oct 2008 08:47:07

Contact us at files@mathworks.com