diff_bd_loglik_version: Evaluate and compare bd_loglik() from two versions of DDD

Description Usage Arguments Details Value Author(s)

View source: R/diff_bd_loglik_version.R

Description

The function calls bd_loglik() from DDD_3.2 and from the current version and computes their difference.

Usage

1
2
diff_bd_loglik_version(brts, pars1, pars2, missnumspec = 0,
  methode = "lsoda")

Arguments

brts

a set of branching times, all positive.

pars1

numerical parameters to be passed to bd_loglik()

pars2

numerical parameters to be passed to bd_loglik()

missnumspec

parameter passed to bd_loglik(), default to 0.

Details

bd_loglik() parameters pars2 are set to c(4,1,1,0,2,1000) here. bd_loglik argument methode is set to 'lsoda'.

Value

a numeric vector of length 6 containing the input parameter values, the loglikelihood returned by bd_loglik_3.2() and bd_loglik() and their difference.

Author(s)

Théo Pannetier


TheoPannetier/llDDD documentation built on Feb. 24, 2020, 3:18 p.m.