Sorry for the naive question! I want to adjust for some covariates in my expression data such that the output is 'adjusted' for the covariates? For example:
INPUT: expression matrix COVARIATES: tissue, location, age, outcome
DESIRED OUTPUT (asked by collaborator): 'adjusted' expression matrix
Do I just need the fitted values from output of 'lm'? Or am I just thinking this incorrectly?