moments: moments

Description Usage Arguments Value

View source: R/likelihoods.R

Description

compute the moment matrices for a time-inhomogenous branching process model with a certain set of parameters. Helps for computing likelihoods.

Usage

1
moments(model, rate_params, start_times, end_times)

Arguments

model

the process_model object representing the process whose moments will be computed

start_times

the various start times of the moments to be computed

end_times

the various end times of the moments to be computed

params

the vector of parameters to plug into the process model during moment computation

Value

a dataframe with the moments vector for each unique start and end combination


Michorlab/estipop documentation built on March 4, 2020, 1:24 p.m.