R/estmodel.R

Defines functions estmodel

Documented in estmodel

estmodel=function(df,estimate =c("median","mean","shorth"),per=NULL){
  if(length(estimate)>1)
    stop("wrong estimates argument, please use median, mean or short")
  if(!"weight"%in%colnames(df))
    stop("please add weight column in df to indicate which data points to include in the analysis. See function 'weightDf' for more info")
  if(!is.null(per)){
    df = split(df,df[,per])
    res = lapply(df,estpart,estimate)
  } else res = estpart(df,estimate)
  
  res
}
  

 

Try the coRNAi package in your browser

Any scripts or data that you put into this service are public.

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