Dear colleagues!

I conducted an experiment with a nominal within-subject factor (type; 2 levels; unbalanced) and a continuous (age) and a nominal (sex; 2 levels; unbalanced) between-subject factor. Now I want to fit the following linear model for my outcome variable (continuous):

  Y = b00 + b10*age + sex*(b01 + b11*age) + type*(b02 + b12*age)

Where sex and age are dummy variables, b0i are the intercepts and b1i the slopes.

However, I am not sure if this is the right way to do it, since I am not regarding the fact that type is not an independent measure (as it is a within-subject factor). If age would have been an ordinal variable I would have taken an repeated-measures ANOVA, but in the regression case I am not sure

My question is: Is this a valid approach?

Greetings, David

Similar questions and discussions