bp_model: User-friendly function to construct a new valid 'bpm' object

Description Usage Arguments Value

View source: R/bp_model.R

Description

User-friendly function to construct a new valid bpm object

Usage

1
bp_model(e_mat, p_vec, func_deps, nparam, ndep)

Arguments

e_mat

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

p_vec

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

func_deps

A vector of expressions encoding how each rate depends on the parameters of the model and a set of dependent variables.

nparam

The number of parameters in the model

ndep

The number of dependent variables which influence the rates of the model

Value

A new branching process model object if the parameters passed are valid. Otherwise an exception is thrown.


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