R/pdf.R

pdf <-
function (T.dist, T.dist.par, t) {
dDis = paste("d", T.dist, sep="" , collapse="")

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

return( pdf.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.