Learn R Programming

coRNAi (version 1.22.0)

estmodel: Function to do estimate the main effects from data using median, mean or shorth.

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

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.

Examples

Run this code
data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
df$weight = as.numeric(df$Type=="comb")
main = estmodel(df,estimate="median")
str(main)

Run the code above in your browser using DataLab