Thanks for you reply.Two questions for you : (1)So you mean the author used the residuals from the linear model to represent the protein levels and the residuals were protein levels after removing the population effects ? (2)As you can see in the following code:
a<-rnorm(100)
b<-rnorm(50)
c<-rnorm(30)
dat<-data.frame(prot_lev= c(a, b, c), pop=c(rep(0,100),rep(1,50),rep(2,30)))
lmreg<- lm(prot_lev ~ pop, data= dat)
summary(lmreg)
And it goes like this:
Call: lm(formula = prot_lev ~ pop, data = dat)
Residuals: Min 1Q Median 3Q Max -2.24687 -0.66452 0.02218 0.76330 2.24357
Coefficients: Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.07544 0.09237 0.817 0.4152
pop -0.16256 0.09505 -1.710 0.0889 .--- Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.9636 on 178 degrees of freedom
Multiple R-squared: 0.01617, Adjusted R-squared: 0.01064
F-statistic: 2.925 on 1 and 178 DF, p-value: 0.08894
you can see the (Intercept) , pop and the model significance are greater than 0.05, so is it reasonable that i use the residuals in this model?