Repeated measures 2 way ANOVA

Hi group,
I was wondering if anyone has julia code that can do repeated measures 2 way ANOVA? In the past, I’ve used the GLM package to do 2 way ANOVA, but it’s not clear to me how I would approach a repeated measures design using GLM (if that’s even possible). Right now, I’m using the MATLAB fitrm/ranova functiosn through the MATLAB.jl package, but I would like to remove this dependency on MATLAB if possible. Thanks!

Check the MixedModels package. Random effects are generally considered the modern way of dealing with repeated measures.

Thanks for the reply, I’ll check out the package. Could I ask a more general question about my problem, though? I have a process that is associated with a categorical variable, and I’m sampling the process at two different time points. I am interested in a few questions;

  1. Does the process contain information about the categorical variable?
  2. Does the process change significantly across time?
  3. Is there an interaction between the information about category and time? In other words does the information about the category change as a function of time?

The last two questions I believe can be answered by repeated measures ANOVA, but that analysis does not give me the main effect of category. The way I’m addressing that now is to run ANOVA using category as the dependent variable.
If anyone has an idea of how to better answer my questions, I would be grateful. As this is not a question specific to Julia, feel free to ignore it :slight_smile:
Thanks!

1 Like

You could do a regression of Process = Category * Time with the unit you sample repeatedly as a random effect, I guess. Hard to say without more information.

Is there an equivalent of GLM.ftest in the MixedModels package?