Arranging data for test of statistical significance from multiple subjects
Show older comments
Hi,
I have 20 different feature matrix as (NxM) from 20 different subjects. Where N (e.g. 1... 10 different features) is fixed but M varies (i.e. 1...., observations) for each subject.
How should I arrange my data such that I will know the statistical significance of each feature by including all the subject's data?
Which kind of tests are suitable when M is varying for each subject? Should I use ANOVA, MANOVA, multicompare etc. or any other?
Any help in this regard will be highly appreciated.
Thanks!
Answers (1)
Tom Lane
on 23 Apr 2013
0 votes
It sounds like you have a univariate rather than multivariate problem. So anova1 rather than manova1.
You have two choices. First, put your data in the N-by-M matrix and pad with NaNs so make up the M total for each subject. Or put your data in a vector V and create a separate vector S giving the subject number for each corresponding element of V. The anova1 function will accept either form.
5 Comments
LRBLFAST
on 23 Apr 2013
Tom Lane
on 23 Apr 2013
Maybe repeated measures is appropriate. I didn't understand that from the original description. There's currently no repeated measures functionality in the Statistics Toolbox. You may be able to handle this using anovan and specifying subject as random. Not sure.
LRBLFAST
on 25 Apr 2013
Tom Lane
on 25 Apr 2013
Sorry, I'm not familiar with that File Exchange program. Based on a quick look it seems to require balanced data. You might try writing to the author on the File Exchange page. He seems to respond to questions.
LRBLFAST
on 26 Apr 2013
Categories
Find more on ANOVA in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!