# Thread: [Matlab] One-way ANOVA with 2 covariates [HowTo?]

1. ## [Matlab] One-way ANOVA with 2 covariates [HowTo?]

Hello everyone,

(Big hello, my first post in this forum!)

I was wondering how to do a one-way ANOVA with 2 covariates in Matlab. The problem is that I work with a variety of scripts and most are realized in matlab; also, I have absolutely no knowledge of R or any other powerful language that is aimed at statistics.

Any help is greatly appreciated!

Best wishes- kvendlar

2. ## Re: Matlab: one-way ANOVA with 2 covariates [HowTo?]

Can you describe your data a little more? I don't use matlab but when you say you want to do one-way ANOVA with 2 covariates - to me it sounds like you really want to do a 2-way ANOVA (or possibly an ANCOVA).

3. ## Re: Matlab: one-way ANOVA with 2 covariates [HowTo?]

Thank you for your quick reply, and sorry for the delay on my side!

I actually want to calculate an ANCOVA (with 2 covariates). My data is the cortical thickness of roughly 140 brain regions of patients and healthy controls. So I would like to compare these considering the age and the average cortical thickness of the brain as covariates.

Eventually, I would like to use false discovery rate to correct for multiple testing.

I know that the aoctool in the statistic toolbox calculates an ANCOVA with one covariate and I know that the mafdr command adjusts for multiple comparisons.
But I still don't know how to consider 2 covariates.

4. ## Re: Matlab: one-way ANOVA with 2 covariates [HowTo?]

You can do a statistical analysis in essentially any language - some just make certain operations easier than others.