Accounting for Covariates: which is the best test and how to do this in matlab
6 views (last 30 days)
Show older comments
Hello
I would really appreciate some help. I have been trying to find out which is the best test to account for Covariates. I have a repeated measures design. For instance participants will see on of two stimuli, and we will collect two or more continuous data relating to that stimuli. For instance how long they perceived the stimuli to last and the time it took to respond. There are a few other similar continous stimuli.
I have done repeated measures t test for all of these dependant variables. However, I am mostly interested how long they perceived the stimuli to last. I now want to see if my data is still significant considering the other continous data as possible covariates. (FYI this is just an example)
From reading around (although it seems unclear) I think I need a mancova. However can you advise what is the best test to run and how to run it in matlab (or point me in the direction)?
0 Comments
Answers (1)
Adam Danz
on 3 May 2020
You could perform an analysis of covariance using anovan() and explicitly identiying the covariates. Here's an example from data I recently analyzed,
[p,tbl,stats,terms] = anovan(y,{cc, factor}, 'Continuous',1,'model','interaction',...
'varnames',{'VarName1','VarName2'})
where cc is the continuous covariate and factor is the categorical variable. Importantly, note that the Continuous property indicates that the first variable in the 2nd input is continuous. If there's more than 1 continuous covariate, use a vector of indices. This is all described in the documentation, as well.
7 Comments
Adam Danz
on 4 May 2020
Edited: Adam Danz
on 5 May 2020
That is a repeated measures and covariates (money and ratings) could potentially vary between the mh groups so the link I shared on constant covariates does not apply.
From your question, ' I am mostly interested how long they perceived the stimuli to last. ', but I don't see that variable in your description.
What's the exact question you're asking because that will determine which statistic to use.
See Also
Categories
Find more on Measurements and Spatial Audio 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!