estimate: estimate

Description Usage Arguments

View source: R/estimate.R

Description

Estimates the rate parameters for a general multitype branching process with constant rates

Usage

1
2
estimate(model, init_pop, times, final_pop, initial_params, lower = NULL,
  upper = NULL, trace = 1)

Arguments

model

the process_model object representing the process generating the data

init_pop

a nobs x ntype matrix with initial population for each observation

final_pop

the nobs x mtype matrix of final populations observed

initial_params

vector of initial parameters estimates for MLE optimization

lower

vector of lower bounds on rate parameters for optimization

upper

vector of upper bounds on rate parameters for optimization

trace

level of output for optimizer - see optim function, control - trace for "L-BFGS-B" method

params

the vector of parameters for which we are computing the likelihood

time

the nobs length vector containing the time between the initial and final population observations


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