R/get_E.R

Defines functions get_E

get_E <- function(E0, F, non_compl_id, event_prob_link, hash_id, compl_id) {

    E <- E0

    E[, non_compl_id] <- F[, event_prob_link[non_compl_id]]

    for (i in 1:length(hash_id)) {
        E[, hash_id[i]] <- 1 - rowSums(E[, compl_id[[i]], drop = FALSE])
    }

    return(E)
}

Try the twig package in your browser

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

twig documentation built on April 12, 2025, 2:08 a.m.