bp: Simulate multi-type Markov branching process

Description Usage Arguments Value

View source: R/simulation.R

Description

Simulate multi-type Markov branching process

Usage

1
bp(e_mat, r_vec, p_vec, z0_vec, times)

Arguments

e_mat

The matrix of birth events that can occur in the brnaching process. Dimensions nevents x ntypes

r_vec

A vector containing the rate at which each of the birth events in e_mat occurs. Dimensions nevents x 1

p_vec

A vector containing the parent type for each of the birth events in e_mat. Dimensions nevents x 1

z0_vec

The initial population vector at time 0. Dimensions ntypes x 1

times

The timepoints at which to record the population

Value

A matrix with the population vectors at each timepoint. Dimensions ntimes x ntypes


jproney/bpinference documentation built on April 19, 2021, 2:18 a.m.