Description Usage Arguments Value Examples
fitLinearModel
fits and returns a linear model with log2inty
as response, and group
and possibly batch
as fixed effects.
1 | fitLinearModel(df, fctBatch = FALSE)
|
df |
A data frame with columns |
fctBatch |
A logical. |
An lm
model object.
1 2 3 4 5 6 7 8 9 10 11 12 | x1 <- data.frame(
batch=rep(c("1", "2"), each=4),
group=rep(c("1", "2"), 4),
log2inty=rep(c(10, 12), 4) + rnorm(8)
)
fitLinearModel(x1, fctBatch=TRUE)
x2 <- data.frame(
group=rep(c("1", "2"), 3),
log2inty=rep(c(10, 12), 3) + rnorm(6)
)
fitLinearModel(x2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.