updateDf: updates dataframe after fitting of main estimates

Description Usage Arguments Value Author(s) Examples

View source: R/updateDf.R

Description

adds residuals (value-main effects) to a dataframe

Usage

1
updateDf(df, lm, per=NULL)

Arguments

df

df dataframe created by cellHTS2df function

lm

lm lm objects, residuals from fitting main effects to data

per

per string argument, for which factor the analysis was done separetly, eg. replicate.

Value

data frame with a new column "residuals"

Author(s)

Elin Axelsson

Examples

1
2
3
4
5
6
data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
df = weightDf(df,exclude=c("double","controlP1","controlP2","controlN1","controlN2","controlP1N1"))
lmain =lmmain(df)
df = updateDf(df,lmain)
hist(df$residuals)

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.