Tuesday debugging

Wrote seven unit tests to identify source of how/why I can get $ $’s to be larger in the parrotfish group than wrasses (when only $alpha $ varies across regimes) on the same trait for which $ $’s are larger (when only they vary). Tests successively restrict pattern into the likelihood equation, some treatment of the regimes must be wrong.

Unit tests.

Nov 29, 2011

  1. also need to double-check calc of lca_matrix – needs to obey same sc…

52a5d0bf12 Browse code

cboettig 2011-11-29 17:29:04

  1. seems that branchlength times alpha is off somewhere…

5e88b3af18 Browse code

cboettig authored 2011-11-29 17:27:26

  1. docs for data

fc852d023d Browse code

cboettig authored 2011-11-29 15:23:54

  1. unit_test5, lambda parameter illustrates the problem

3da057ba8d Browse code

cboettig authored 2011-11-29 15:22:50

  1. added data documentation

e6caf07ca5 Browse code

cboettig authored 2011-11-29 14:36:49

  1. Merge branch ‘master’ of github.com:cboettig/wrightscape

8f64c98b66 Browse code

cboettig authored 2011-11-29 14:27:31

  1. Merge branch ‘master’ of github.com:cboettig/wrightscape

4c6c546f66 Browse code

cboettig authored 2011-11-29 14:27:17

  1. more unit tets

970c765c8d Browse code

cboettig authored 2011-11-29 14:27:07

  1. unit testing

52c264222e Browse code

cboettig authored 2011-11-29 14:26:41

  1. unit testing continues

03a056f6f4 Browse code

cboettig authored 2011-11-29 14:26:22

  1. Merge branch ‘master’ of github.com:cboettig/wrightscape

2ce29b5d41 Browse code

cboettig authored 2011-11-29 10:26:01

  1. debug unit_test3 working

938d5f7245 Browse code

cboettig authored 2011-11-29 10:25:46

  1. adding more unit tests

00147026a2 Browse code

cboettig authored 2011-11-29 10:24:44

  1. debug exploring

a1b7a02aaf Browse code

cboettig authored 2011-11-29 09:09:02

Time to check these

Mean \[ E(X_t) = \exp \left( - \sum \alpha_i \Delta t_i \right) \left( X_{t_i} + \sum \theta_i \left( e^{\alpha_i t_i}-e^{\alpha_i t_{i-1} } \right) \right) \]

Covariances \[ \omega = \frac{\sigma^2}{2 \alpha } \left( e^{2\alpha t_i} - e^{2 \alpha t_{i-1}} \right) \] \[ \langle x_i, x_i \rangle = \omega \exp( \alpha_i t_i - \alpha_j t_j) \]

(Note - dates pulled out of html with vim gsub, note that vim needs the parentheses for grouping to be escaped (backwhacked!)

 :%s/<time.*title="$.*$".*time>/\1/g