Hello,
using a mixed effect model I want to compare behavioral effects of a treatment in an intersubjective design at two different timepoints.
I have two timepoints of interest, where the task with the dependent variable (task) was performed. The two timepoints are coded "0" und "1" and coded with the variable "time". At timepoint A subjects performed the task and I want to compare active vs. control treatment. Furthermore, at timepoint B subjects performed the same task and I want to compare active vs. control treatment again. Treatment is coded with 0 (control - timepoint A), 1 (active-timepoint A), 2 (control timepoint B) and 3 (active timepoint B). My goal is to compare treatment variables 0 vs. 1 on the dependent Variable "task", as well as the same with treatment variables 2 vs. 3. .
Using this stata code:
The output gives me values for an interaction for treatment#time:
1#0: constant etc
2#1: constant etc
3#1: constant etc
My question is: At timepoint A it seems like active vs. control are compared to explain the dependent variable. However, at timepoint B I´m not sure if treatment variables are compared only with control treatment at timepoint A for both treatment variables 2 and 3. Am I right? How would I be able to compare the treatment 2 vs. 3 for my dependent variable in the same model and keep the comparision of treatment variables 0 vs. 1 at the same time?
Thank you!
Jasper
using a mixed effect model I want to compare behavioral effects of a treatment in an intersubjective design at two different timepoints.
I have two timepoints of interest, where the task with the dependent variable (task) was performed. The two timepoints are coded "0" und "1" and coded with the variable "time". At timepoint A subjects performed the task and I want to compare active vs. control treatment. Furthermore, at timepoint B subjects performed the same task and I want to compare active vs. control treatment again. Treatment is coded with 0 (control - timepoint A), 1 (active-timepoint A), 2 (control timepoint B) and 3 (active timepoint B). My goal is to compare treatment variables 0 vs. 1 on the dependent Variable "task", as well as the same with treatment variables 2 vs. 3. .
Using this stata code:
mixed c.task i.treatment#i.time || id:
1#0: constant etc
2#1: constant etc
3#1: constant etc
My question is: At timepoint A it seems like active vs. control are compared to explain the dependent variable. However, at timepoint B I´m not sure if treatment variables are compared only with control treatment at timepoint A for both treatment variables 2 and 3. Am I right? How would I be able to compare the treatment 2 vs. 3 for my dependent variable in the same model and keep the comparision of treatment variables 0 vs. 1 at the same time?
Thank you!
Jasper
Comment