findFC {factDesign} | R Documentation |
'findFC' constructs a point estimate of fold change using the linear model coefficients in an lm object.
findFC(model, lambdaNum, lambdaDenom)
model |
An lm object. |
lambdaNum |
A numeric vector of coefficients for the parameters to be used in the numerator of the fold change estimate. |
lambdaDenom |
A numeric vector of coefficients for the parameters to be used in the denominator of the fold change estimate. |
A point estimate of the fold change between the experimental conditions specified in the lambdaNum and lambdaDenom vectors.
Denise Scholtens
data(estrogen) ES <- pData(estrogen)[["ES"]] TIME <- pData(estrogen)[["TIME"]] fit <- lm(exprs(estrogen)[6,] ~ ES + TIME + ES*TIME) betaNames <- names(fit[["coef"]]) betas <- list(c("(Intercept)","ESP","TIME48h","ESP:TIME48h"), c("(Intercept)","ESP")) coefs <- list(c(1,1,1,1),c(1,1)) lambda <- par2lambda(betaNames,betas,coefs) findFC(fit,lambda[1,],lambda[2,])