open-discussion
open-discussion > Nuisance co-variates
Sep 14, 2015 12:09 PM | Patrizia Dall'Acqua
Nuisance co-variates
Hi NBS community
I am running an analysis were I want to control for age, sex, and education.
As suggested by Andrew, I simply added a column to my design matrix for each covariate and I added an extra zero to my contrast vector for each covariate added.
My study design has 2 groups (controls and patients) and 2 time points (two-way repeated measure ANCOVA).
Since the influence of the covariates on the controls is different from that on the patients over the time, I was wondering, if is possible to correct the covariates separately for each groups.
What about setting up the design matrix in NBS like this (in the example I put 3 subjects per group):
Age Patients/ Age Controls/ Education Patients/ Education Controls/ Sex Patients/ Sex Controls
34 0 9 0 1 0
53 0 12 0 -1 0
23 0 13 0 1 0
0 30 0 10 0 1
0 51 0 14 0 -1
0 22 0 13 0 1
Technically it works, but I don't know if it is correct.
Does NBS interpret this as a group-specific covariate and models it within the group or does NBS simply interprets it as zeros and modelled it across both groups?
Thank you in advance for any kind of advice.
Kind regards
Patrizia
I am running an analysis were I want to control for age, sex, and education.
As suggested by Andrew, I simply added a column to my design matrix for each covariate and I added an extra zero to my contrast vector for each covariate added.
My study design has 2 groups (controls and patients) and 2 time points (two-way repeated measure ANCOVA).
Since the influence of the covariates on the controls is different from that on the patients over the time, I was wondering, if is possible to correct the covariates separately for each groups.
What about setting up the design matrix in NBS like this (in the example I put 3 subjects per group):
Age Patients/ Age Controls/ Education Patients/ Education Controls/ Sex Patients/ Sex Controls
34 0 9 0 1 0
53 0 12 0 -1 0
23 0 13 0 1 0
0 30 0 10 0 1
0 51 0 14 0 -1
0 22 0 13 0 1
Technically it works, but I don't know if it is correct.
Does NBS interpret this as a group-specific covariate and models it within the group or does NBS simply interprets it as zeros and modelled it across both groups?
Thank you in advance for any kind of advice.
Kind regards
Patrizia
Threaded View
Title | Author | Date |
---|---|---|
Patrizia Dall'Acqua | Sep 14, 2015 | |
Ru-Kai Chen | Sep 3, 2024 | |
Fatemeh Shahsanaei | Sep 9, 2024 | |