par2lambda {factDesign} | R Documentation |
'par2lambda' takes list of lm coefficient names and a corresponding list of numeric vectors corresponding to hypothesis tests of linear contrasts and returns a lambda matrix suitable for an F-test of the linear contrasts. 'par2lambda' is intended to be used in conjunction with 'contrastTest', 'findFC', or 'findFClog'.
par2lambda(betaNames, betas, coefs)
betaNames |
A character vector of the names of the coefficients in a linear model. |
betas |
A list of vectors of the parameters to be used in the contrasts. |
coefs |
A list of vectors of numeric coefficients corresponding to betas. |
A lambda matrix constructed for testing linear contrasts using lm output.
Denise Scholtens
data(estrogen) ES <- pData(estrogen)[["ES"]] TIME <- pData(estrogen)[["TIME"]] fit <- lm(exprs(estrogen)[1,] ~ ES + TIME + ES*TIME) betaNames <- names(fit[["coef"]]) betas <- list(c("ESP","ESP:TIME48h"),c("TIME48h","ESP:TIME48h")) coefs <- list(c(1,1),c(1,1)) par2lambda(betaNames,betas,coefs)