Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ea11
    Member
    • Jun 2015
    • 36

    Design matrix for edgeR help

    Hi,

    I am attempting to create a design matrix in edgeR to determine differentially expressed genes, but I am unsure on the notation to use as I am relatively new to R and not a statistician in any way.

    Basically, the experimental design is as follows:

    We have two treatments (A and B), each treatment had two cages and in each cage, there were 3 mice. Therefore in total, we have 6 mice for each treatment, coming from 2 cages for each treatment (total of 4 cages). We are not interested in the effect of the different cages, but are interested in differentially expressed genes between the 2 treatments (A and B).

    So what I was wondering is what the design matrix would be taking into account that cage is nested in treatment. Would it be one of the following or something completely different:

    PHP Code:
    design <- model.matrix(~cage/treatment)

    design <- model.matrix(~treatment*cage)

    design <- model.matrix(~cage %intreatment
    Thanks for any help

Latest Articles

Collapse

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 06-09-2026, 11:58 AM
0 responses
14 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-05-2026, 10:09 AM
0 responses
26 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-04-2026, 08:59 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-02-2026, 12:03 PM
0 responses
60 views
0 reactions
Last Post SEQadmin2  
Working...