R/lmpart.R

Defines functions lmpart

lmpart = function(df){
  cont = attr(df,"neutral")
  df=df[df$weight>0,]
  mod = coRNAi:::moMatrix(df)
  mod = mod[,!colnames(mod)%in%cont]
  lmmain2 = lm(df$value~mod-1)
  names(lmmain2$coefficient)= sapply(strsplit(names(coef(lmmain2)),"mod"),"[[",2)
  lmmain2
}

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.