Hi, so I am very confused as to how I can make a multifactor design for limma RNA differential expression. I've read other posts in different forums and none of the answers are very explicit (to me) as to how to build a multifactor design
For examples, say I have p1N, p1T, p2N, and p2T, where p# is patient number and N/T is normal tumor.
I can build a single factor design matrix like this:
------Normal------Tumor
1 ------ 1 --------- 0
2 ------ 0 --------- 1
3 ------ 1 --------- 0
4 ------ 0 --------- 1
I am completely lost as to how I can build a numeric matrix with multiple factors, which in this case, the factors would be patient number and N/T.
For examples, say I have p1N, p1T, p2N, and p2T, where p# is patient number and N/T is normal tumor.
I can build a single factor design matrix like this:
------Normal------Tumor
1 ------ 1 --------- 0
2 ------ 0 --------- 1
3 ------ 1 --------- 0
4 ------ 0 --------- 1
I am completely lost as to how I can build a numeric matrix with multiple factors, which in this case, the factors would be patient number and N/T.
Comment