**10**wrote:

Hi,

Just comparing the output of limma and lme. The model that I fit with lme is :

le <- lme(lmIntensity ~ Condition, random = ~1|Donor, data = x)

Since I have repeated measures (Condition) on the same Donor and I am not interested in the Donor effect I model it as random effect.

In limma paired samples, according to the limma userguide.pdf just need the following design matrix (see section 9.4.1):

designm <- with(des, model.matrix(~ Donor + Conditon)) fit2 <- lmFit(intMatrix, designm) fit2.eb <- eBayes(fit2)

(Q1 : How would I specify in limma the following linear model lm(lmIntensity ~ Donor + Condition) ?)

Then to make the comparison between lme and limma I compute the ordinary p.values from the eBayes output by:

coefsigma <- with(fit2.eb, sweep(coefficients,1, sigma, "/")) t.ord <- with(fit2.eb, coefsigma/ stdev.unscaled )

The effect sizes for the conditions are the same (intercepts are different, not sure why; anyone knows Q2 ? Since I am interested in differences between the conditions only thats OK for the moment).

However, although many of the not moderated p-values (see for how I computed them above) are identical, some are quite different (see output below).

> head(CMPComp) row.names Effect.ConditonCMP p.ord.ConditonCMP CMP.fc CMP.p 1 A0A075B759 0.01522833 0.7775432739 0.01522833 0.7775432740 2 A0A096LP55 -0.36954684 0.0111800249 -0.36954684 0.0111800250 3 A0A0B4J2A2 -0.01566147 0.8673074288 -0.01566147 0.8673073828 4 A0AVT1 -0.27562322 0.0003654401 -0.27562322 0.0003654401 5 A0FGR8 0.22901692 0.0036717127 0.22901692 0.0036717088 6 A1L0T0 0.16303605 0.1694970420 0.16303605 0.1694970431 > with(CMPComp,head(CMPComp[(CMP.p - p.ord.ConditonCMP) < -0.05,])) row.names Effect.ConditonCMP p.ord.ConditonCMP CMP.fc CMP.p 320 O75688 -0.0577627 0.3186220 -0.0577627 0.2672571 1978 Q5T8P6 0.2838912 0.2477060 0.2838912 0.1966852 2912 Q9NRA8 0.1834104 0.2209531 0.1834104 0.1674343

Here CMP.p are the p-values from the lme model above for the condition CMP while p.ord.ConditonCMP is for the same condition computed using limma.

Q3. What is the explanation for the differences? Usually, limma overestimates the p-values compared with lme.