Code covered by the BSD License

### Highlights from Levenetest

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

# Levenetest

### Antonio Trujillo-Ortiz (view profile)

01 May 2003 (Updated )

Levene's test for homogeneity of variances.

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)
21 May 2014 gargouri

### gargouri (view profile)

25 Feb 2014 Beate

### Beate (view profile)

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

### John (view profile)

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

04 Jun 2009 Farah

### Farah (view profile)

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".