help > RE: Design matrix and contrast for 2x2 design
Dec 2, 2024  02:12 PM | Max Kathofer
RE: Design matrix and contrast for 2x2 design

Hi Andrew! 


 


Thanks for all your responses! I just have one last question. What if I want to model a continuous predictor and check whether there exists a linearly increasing subgraph? 


Again I have a repeated measure design across 2 drug conditions but I have ~20 FC matrices for each drug condition per subject. I would have 2 questions:



  1. It is often recommended to demean data across ALL participants. I am unsure why though. Wouldn't it make more sense to demean for each subject across drug conditions to account for their individual differences?
  2. Would a design matrix like this then be correct? 

 


0 -2 1 0 0 0 ....


0 3 1 0 0 0 .... 


1 -0.5 1 0 0 0 ....


0 -8 0 1 0  0 0 


 


The first column denotes drug (0/ placebo; 1/drug) 
The second column is the per subject demeaned behavioral rating
Column 3 denotes that the first 3 entries belong to participant 1 
Column 4 denotes that the 4th entry belongs to subject 2 
The zeros afterwards would have length(subejct) 


 


Thank you for your help! 


Cheers, 


Max 

Threaded View

TitleAuthorDate
David de Wide Aug 3, 2017
Max Kathofer Oct 31, 2024
Andrew Zalesky Nov 1, 2024
Max Kathofer Nov 1, 2024
Andrew Zalesky Nov 1, 2024
RE: Design matrix and contrast for 2x2 design
Max Kathofer Dec 2, 2024
Andrew Zalesky Dec 6, 2024
Max Kathofer Dec 9, 2024
Andrew Zalesky Dec 10, 2024
yue zhang Jan 11, 2020
Andrew Zalesky Aug 5, 2017
Liam Nestor Sep 27, 2019
Andrew Zalesky Sep 28, 2019
Liam Nestor Sep 28, 2019
Andrew Zalesky Sep 28, 2019
Liam Nestor Sep 30, 2019
Andrew Zalesky Oct 1, 2019
Liam Nestor Oct 1, 2019
David de Wide Aug 6, 2017
Andrew Zalesky Aug 7, 2017
David de Wide Aug 7, 2017
Andrew Zalesky Aug 7, 2017
David de Wide Aug 11, 2017
Andrew Zalesky Aug 12, 2017
David de Wide Aug 18, 2017
Andrew Zalesky Aug 19, 2017