R/q.R

q <-
function (p, T.dist, T.dist.par) {
qDis = paste("q", T.dist, sep="" , collapse="")

if(length(T.dist.par)==1)
  { q.t = do.call(qDis, list(p, T.dist.par[1])) } 
  else{
      if(length(T.dist.par)==2)
        { q.t = do.call(qDis, list(p, T.dist.par[1], T.dist.par[2])) } 
        else
          { q.t  = do.call(qDis, list(p, T.dist.par[1], T.dist.par[2], T.dist.par[3])) }
      }

return( q.t )
}

Try the DISTRIB package in your browser

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

DISTRIB documentation built on May 2, 2019, 2:51 p.m.