Definitions follow the methods paper (report/paper2/s2-models.tex, s3-inference.tex) and ledger E (mathematics against code). Time runs forward from the crown (\(t = 0\)) to the present (\(T\)); \(A(t)\) is the set of lineages alive at \(t\) on the complete tree.

The rates

\[ \lambda_s(t) = g\big(\beta_0 + \beta_N N(t) + \beta_D D_s(t) + \beta_{ED}\,\mathrm{ED}_s(t) + \beta_K K_s(t)\big),\qquad \mu_s(t) = g\big(\gamma_0 + \gamma_N N(t) + \gamma_D D_s(t) + \gamma_{ED}\,\mathrm{ED}_s(t) + \gamma_K K_s(t)\big) \]

A model leaves some coefficients free and fixes the rest at zero. Every covariate a model uses enters both rates, so each adds two free parameters to the two intercepts.

The models

model covariates (both rates) free parameters default proposal (alternative) exact reference
cr none 2 surrogate (thinning) DDD::bd_ML
dd \(N\) 4 surrogate (thinning) DDD::dd_ML (linear link, constant \(\mu\))
d \(D\) 4 thinning (surrogate) none
nd \(N\), \(D\) 6 thinning (surrogate) none
ed ED 4 surrogate (thinning) none
edc centred ED 4 surrogate (thinning) none
ned \(N\), ED 6 surrogate (thinning) none
nedc \(N\), centred ED 6 surrogate (thinning) none
k \(K\) 4 thinning (the surrogate refuses \(K\)) none
nk \(N\), \(K\) 6 thinning (the surrogate refuses \(K\)) none

"Lineage-level model": any model with \(D\), ED or \(K\); "clade-level": cr and dd.

The covariates

All are read on the complete tree (hidden lineages included).

Effect scales. Simulation effects are stated per scale unit of the covariate: under the linear link as a fraction of \(\beta_0\) at one clade-mean (ED) or one standard deviation (\(D\)) unit (e.g. "-0.15\(\lambda\)"); under the exponential link as \(\log(1+e)\) per standard deviation (e.g. \(\log 0.65\), so the rate one unit above the mean is 0.65 times the rate at the mean). Real-tree coefficients are reported as the factor \(\exp(\hat\beta_X\,\mathrm{sd}_X)\) per standard deviation.

The tree and its parameters

The two proposals

Importance sampling and its diagnostics

Fitting

Model choice

Conditioning

Markings

Exact references