estmodel: Function to do estimate the main effects from data using...

Description Usage Arguments Value Author(s) Examples

View source: R/estmodel.R

Description

The function estimates the main effect i from all data with the RNIi against i. It can be done by median, mean or shorth.

Usage

1
estmodel(df, estimate = c("median", "mean", "shorth"), per = NULL)

Arguments

df

df data frame from cellHTS2df function with extra column weight (see weightDf)

estimate

estimate median, mean or shorth, decides how the main effects will be estimated.

per

per for which factor should the analyis be done separetly, eg. batch or replicate.

Value

for per =NULL, a list with

coefficient

the estimated main effects

residuals

the residual after the main effects have been subtracted from the observations

for other per, a list of lists like the once described above, one for each level of the factor per.

Author(s)

Elin Axelsson

Examples

1
2
3
4
5
data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
df$weight = as.numeric(df$Type=="comb")
main = estmodel(df,estimate="median")
str(main)

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