R/build_initdist.R

Defines functions build_initdist

Documented in build_initdist

#' Construct the vector with initial state probabilities for a single subject at
#' time t0.
#' 
#' @inheritParams simulate_epimodel
#'   
#' @return vector of initial state probabilities for a single subject
#' @export

build_initdist <- function(epimodel) {
          
          initdist <- epimodel$params[epimodel$initdist_params]
          
          return(initdist)
}
fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.