R/StromaExp.R

StromaExp <- function(exp_T,exp_N,exp_G, rho)
{
  exp_S=t((t(exp_T)-t(exp_G)*rho["G",]-t(exp_N)*rho["N",])/rho["S",])
  S_small=log(quantile(exp_T,0.00001))
  exp_S[exp_S<exp(S_small)]=exp(S_small)
  return(exp_S)
}

Try the DisHet package in your browser

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

DisHet documentation built on May 2, 2019, 2:42 a.m.