Code covered by the BSD License  

Highlights from
Levenetest

4.66667

4.7 | 6 ratings Rate this file 37 Downloads (last 30 days) File Size: 2.92 KB File ID: #3375

Levenetest

by

 

01 May 2003 (Updated )

Levene's test for homogeneity of variances.

| Watch this File

File Information
Description

Levene's F test is used to test the null hypothesis that multiple population variances corresponding to multiplesamples are equal. Prior to the analysis the data are transforming to the absolute deviation of the mean. Then perform an one-way analysis of variance.

MATLAB release MATLAB 5.3 (R11)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
21 May 2014 gargouri  
25 Feb 2014 Beate

Great function. Thank you!

I changed the first line from
function[Levenetest] = Levenetest(X,alpha)
into
function[F, df1, df2, P] = Levenetest(X,alpha)

and suppressed all displays and prints (lines 87, 107:114, 144:153)

such that I can run multiple levene tests and save the results of each.

08 Jun 2012 John

Checked out with another Excel Levene test I found online. Thanks!

04 Jun 2009 Farah

works easily and well. Thanks!

16 Oct 2005 Marie Loukou

After the following indications kindly provided by the author,
1. Levenetest(X) %here it takes the default alpha value = 0.05

2. Levenetest(X,0.1) %here you should give an alpha value

-----------
alpha = 0.1;
-----------
3. Levenetest(X,alpha) %here previously you should define the alpha value

The test is a succes! Thanks a lot.

22 May 2005 Marie Loukou

Good test, thanks.
But for the last lines ("if P >= alpha..."), the following message appeared: "??? Error using ==> alpha
Too many output arguments".

Updates
07 May 2003

At the end of the third phrase of the description text a word of more should be eliminated (absolute).

09 May 2003

It was added an appropriate format to cite this file.

Contact us