Page 1 of 1

SWLDA for P300 classification

Posted: 29 Jun 2014, 10:48
by yinerwei1985
Hi all,

Any of you know the difference between stepwise linear discriminant analysis (SWLDA) and stepwise regression? What's the matlab function for SWLDA?

Thanks, :D

Yin

Re: SWLDA for P300 classification

Posted: 30 Jun 2014, 12:08
by boulay
In the case of P300, the discriminant function is classifying the responses as P300-like vs not-P300-like. i.e., it is a two-class classifier. (Then, when selecting the intended target, we usually choose the target that had the largest P300-like score).

In the case of a two-class dependent variable, LDA and linear regression are identical. See here for more.

So the Matlab function you want is stepwisefit, part of the statistics toolbox. This is the function that is used by the P300Classifier.

Re: SWLDA for P300 classification

Posted: 30 Jun 2014, 15:54
by yinerwei1985
Hi Boulay,

Many thanks for your help!

Erwei