R/allcausehr.R

allcausehr <- Vectorize(function(t, all.bhr, eta.ij, x.i, pme){
    res <- 0
    p <- length(eta.ij)
    for(hi in 1:p){
        res <- res + hr(bhr = all.bhr[[hi]], t = t, 
                        eta.ij = eta.ij[[hi]], x.i = x.i) * pme[hi]
    }
    return(res)}, "t")

Try the simMSM package in your browser

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

simMSM documentation built on May 6, 2022, 9:05 a.m.