Nothing
rmst_on_summary <- function(df, tmax) {
not_dead <- mapply(
function(eligible, event) {
if (eligible == 0) {
return(1)
} else {
return((eligible - event) / eligible)
}
},
df$eligible[df$time < tmax],
df$event[df$time < tmax]
)
return(sum(cumprod(not_dead)))
}
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.