Skip to main content
. 2020 Dec 10;9:1444. [Version 1] doi: 10.12688/f1000research.27893.1
Explanatory variables Design matrix Section
tissue LUNG, BRAIN and cells B, T model.matrix(∼0+group) with groupLUNG_B,BRAIN_B,LUNG_T,BRAIN_T Conversion to a single factor
group A, B, lane L1, L2 and technician I, II model.matrix(∼0+group+lane+technician) Accounting for factors that are not of interest
group A, B and batch B1, B2 Check rank of design matrix Nested factors and matrices without full rank*
treatment X, Y and timepoint T1, T2 with repeated measurements Model mouse IDs, then add columns representing timepoint T2 for both treatments Time series experiment with repeated mouse measurements nested within treatments*
treatment X, Y and timepoint T1, T2 with repeated measurements model.matrix(∼0+group) with groupX_T1,X_T2,Y_T1,Y_T2, and mouse ID as random effect Treating factors that are not of direct interest as random effects*