populationLikelihood: Get the irm keys for the compartment counts in a population...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Get the irm keys for the compartment counts in a population level bookkeeping matrix

Usage

1
2
populationLikelihood(pop_mat, irm, initdist, initdist_param_inds,
  flow_inds, keys, inds, loglik)

Arguments

pop_mat

population level bookkeeping matrix

irm

array of rate matrices

initdist

vector of initial state probabilities

initdist_param_inds

vector of indices for admissible initial states

flow_inds

matrix of indices for locations in IRM for each event

keys

vector of irm keys

inds

indices relating to event times, along with t0 and tmax

loglik

boolean indicating whether to return the likelihood or log-likelihood

Value

population level likelihood or log-likelihood


fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.