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;

- Does the process contain information about the categorical variable?
- Does the process change significantly across time?
- 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

Thanks!

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?