Entering edit mode
10.5 years ago
minni9234
▴
50
Does anyone know why the error occurred when I just make a comparison of 1 time point (2hHGF) sample and 1 time point (2hnoHGF) sample? The error is shown in yellow below. And how to fix the error?
> samples<-as.factor(c("2hnoHGF","2hHGF","8noHGF","8hHGF","24noHGF","24hHGF"))
> design<-model.matrix(~0+samples)
> colnames(design)<-levels(samples)
> fit<-lmFit(selExpr,design)
> contrast.matrix<-makeContrasts(2hHGF-2hnoHGF, levels=design)
> fits<-contrasts.fit(fit,contrast.matrix)
> ebfit<-eBayes(fits)
Error in ebayes(fit = fit, proportion = proportion, stdev.coef.lim = stdev.coef.lim, :
No residual degrees of freedom in linear model fits