R/mulDELTA.R

Defines functions mulDELTA

Documented in mulDELTA

mulDELTA <-
function(vector,index){
   tapply(vector[index>0], factor(index[index>0]), function(vector,ctrl){mean(vector)-mean(ctrl)},vector[index==0])
}

Try the Mulcom package in your browser

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

Mulcom documentation built on Nov. 8, 2020, 5:53 p.m.