fixedGroupBatch {MSstatsPTM}R Documentation

Linear model with group and batch effects

Description

fixedGroupBatch fits and returns a linear model with log2inty as response, and group and batch as fixed effects.

Usage

fixedGroupBatch(df)

Arguments

df

A data frame with columns log2inty, group, and batch for one PTM site.

Value

An lm model object.

Examples

x <- data.frame(
    batch=rep(c("1", "2"), each=4),
    group=rep(c("1", "2"), 4),
    log2inty=rep(c(10, 12), 4) + rnorm(8)
)
fixedGroupBatch(x)


[Package MSstatsPTM version 1.0.0 Index]