TomMaullin / BLMM

This repository contains all code for the BLMM toolbox.
19 stars 5 forks source link

2D and 3D SFS and FS #23

Closed TomMaullin closed 4 years ago

TomMaullin commented 4 years ago

The 2D and 3D versions of SFS and FS seem to give different results occasionally. This should be checked over.

TomMaullin commented 4 years ago

This issue was caused by the calculation of the log-likelihood in these functions. The variables Z'e and X'e, which both depend on beta, were being calculated after beta was updated in one version of the code and before in the other. This was causing slight differences in the log-likelihood calculation in each operation and eventually leading to noticeable differences in the output.