This function calculates log likelihood ratio value.
likelihood(thetast, fobs, merge2)
Arguments
thetast: a starting values for the parameter we need to estimate
fobs: the 4K joint distribution array for K edge tree
merge2: a (K-1) x 2 matrix describing the tree topology
Details
This function calculates the log likelihood ratio value for F(t). It needs a vector of starting values for the parameters estimate, 4K observed divergence array and merge matrix describing the tree topology.
Returns
The value of the log likelihood ratio
References
Faisal Ababneh, Lars S Jermiin, Chunsheng Ma, John Robinson (2006). Matched-pairs tests of homogeneity with applications to homologous nucleotide sequences. Bioinformatics, 22(10), 1225-1231.