Nothing
baseCH <-
function(t, fit)
{
if(!inherits(fit,"extrafrail")) stop("fit must be an object of extrafrail class")
if(!is.numeric(t)) stop("t must be a numeric vector")
t<-as.vector(t)
t[which(t<0)]=0
if(fit$dist=="np")
{
Lambda0<-fit$Lambda0
ind.min<-function(t0, time) min(which(time>=t0))
tt=Lambda0[,1]
t[which(t>max(tt))]=max(tt)
ss=Lambda0[,2][unlist(lapply(t, ind.min, time=tt))]
}
if(fit$dist=="weibull")
{
lambda<-fit$coefficients[length(fit$coefficients)-2:1]
ss=lambda[1]*t^lambda[2]
}
if(fit$dist=="exponential")
{
lambda<-fit$coefficients[length(fit$coefficients)-1]
ss=lambda[1]*t
}
if(fit$dist=="pe")
{
lambda<-fit$coefficients[length(fit$coefficients)-length(fit$part):1]
ss=-ppexp(t, rate=lambda, t=fit$part, lower.tail=FALSE, log.p=TRUE)
}
ss
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.