R/f1.R

Defines functions f1

Documented in f1

f1 <-
function(t,survdist,k,lambda0){
 if(survdist=="exp") {k=1; return(lambda0*k*(lambda0*t)^(k-1)*exp(-(lambda0*t)^k))}
 if(survdist=="weib") {return(lambda0*k*(lambda0*t)^(k-1)*exp(-(lambda0*t)^k))}
}

Try the NPHMC package in your browser

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

NPHMC documentation built on May 9, 2022, 1:06 a.m.