Convert an LNA path from the counting process on transition events to the compartment densities on their natural scale.

lna_incid2prev(
  path,
  flow_matrix,
  init_state,
  forcing_matrix,
  forcing_inds,
  forcing_tcov_inds,
  forcings_out,
  forcing_transfers
)

Arguments

path

matrix containing the LNA path in terms of the counting processes on transition events (incidence)

flow_matrix

stoichiometry matrix (the transpose of the flow matrix)

init_state

initial compartment counts on the natural scale

forcing_matrix

matrix containing the forcings.

The process can be re-expressed by left-multiplying each row in the path matrix by the stoichiometry matrix: \(X_t = X_0 + A'N_t\).

forcing_inds

logical vector of indicating at which times in the time-varying covariance matrix a forcing is applied.