Hello,
I want to make a design with two continuous variables like:
design=model.matrix(~ con_var1 + con_var2 , data=samples)
but my decide test gives me no results:
(Intercept) con_var1 con_var2
-1 26 0 0
0 68 543 543
1 449 0 0
I dont understand why this is not working as it is with factorial variables.
If I do the separately it does work!
design=model.matrix(~ con_var1 , data=samples)
(Intercept) con_var1
-1 37 4
0 52 536
1 454 3
design=model.matrix(~ con_var2 , data=samples)
(Intercept) con_var1
-1 37 9
0 52 536
1 454 2
Thanks for any help!
Best regards,
Julian
If lack of orthogonality is the cause of the problem, one approach might be to drop the both of the variables during testing, i.e.,
where
fit
is the output fromeBayes
. This avoids one of the variables compensating for the other in the null model, as both of them are removed.