I am very new to mixed/multilevel models. I have an experiment where we measured 2 scale variables (varA and varB) in 2 different groups of subjects (control and treatment) at 4 different time points.
I suspect that the relationship between varA and varB is different for the 2 groups (control vs treatment), however it should be roughly consistent across the 4 time points. Researching on the internet I've come to conclusion that I need to model this using a multilevel (mixed effects) model. So, I am interested in the difference between the regression line between varA and varB for the 2 groups, but I want to account for the repeated measures.
What is my experimental design in this case? It's not very clear to me what are the fixed and random effects. Additionally, is it also possible to test if the regression lines are significantly different across the time point? Would that call for a different model? Thanks very much, any help on how I should go about doing this in R/Matlab/SPSS would be greatly appreciated as well!