Freesurfer experts,
I have created a design matrix in order to test for whether there is an interaction effect between two continuous co-variates controlling for a categorical variable.
So I have one categorical variable with two levels, and two continuous co-variates.
My design matrix is as follows:
0 0 1 1 0 0 0 0 0 0 1 1
Is this correct?
-Tim
Timothy Hendrickson Department of Psychiatry University of Minnesota Bioinformatics and Computational Biology M.S. Candidate Office: 612-624-6441 Mobile: 507-259-3434 (texts okay)
Is that your design matrix or the contrast matrix? To test for the interaction between two continuous variables, one usually creates a new variable by multiplying them together and then just testing for the regressor for that variable being different than zero
On 08/23/2017 12:34 PM, Timothy Hendrickson wrote:
Freesurfer experts,
I have created a design matrix in order to test for whether there is an interaction effect between two continuous co-variates controlling for a categorical variable.
So I have one categorical variable with two levels, and two continuous co-variates.
My design matrix is as follows:
0 0 1 1 0 0 0 0 0 0 1 1
Is this correct?
-Tim
Timothy Hendrickson Department of Psychiatry University of Minnesota Bioinformatics and Computational Biology M.S. Candidate Office: 612-624-6441 Mobile: 507-259-3434 (texts okay)
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Hi Doug,
Yes thank you this was my contrast matrix, not my design matrix. I've taken your advice by multiplying the co-variates together.
Thanks for the help!
-Tim
Hi Tim, sorry, just getting back to this. Can you repost with the rest of the email chain?
On 8/24/17 12:21 PM, Timothy Hendrickson wrote:
Hi Doug,
Yes thank you this was my contrast matrix, not my design matrix. I've taken your advice by multiplying the co-variates together.
Thanks for the help!
-Tim
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu