Nothing
##' Risk predictions to work with riskRegression package
##'
##' Risk predictions to work with riskRegression package
##'
##' @param object phreg/binreg/cifreg object
##' @param newdata newdata
##' @param times times for predictions
##' @author Thomas Scheike
##' @export
##' @aliases predictRisk.cifreg predictRisk.binreg
predictRisk.phreg <- function(object,newdata,times=NULL)
{# {{{
pcif <- predict(object,newdata,times=times,se=0)
return(c(1-pcif$surv))
}# }}}
##' @export
predictRisk.binreg <- function(object,newdata,cause,times=NULL)
{# {{{
pcif <- predict(object,newdata,se=0)
return(c(pcif))
}# }}}
##' @export
predictRisk.cifreg <- function(object,newdata,cause,times=NULL)
{# {{{
pcif <- predict(object,newdata,times=times,se=0)$cif
return(c(pcif))
}# }}}
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.