Nothing
# loss function and its first derivative
l_ld <- function(beta, x, n, Start, Stop, Event){
fit.cox <- coxph(Surv(Start, Stop, Event) ~ x,
init = beta,
control = coxph.control(iter.max = 0, timefix = FALSE))
l <- - fit.cox$loglik[1]/n
ld <- - fit.cox$first/n
return(c(l, ld))
}
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.