This function calculates log likelihood ratio value.
Usage
likelihood(thetast, fobs, merge2)
Arguments
thetast
a starting values for the parameter we need to estimate
fobs
the $4^K$ joint distribution array for K edge tree
merge2
a (K-1) x 2 matrix describing the tree topology
Value
Details
This function calculates the log likelihood ratio value for F(t). It needs
a vector of starting values for the parameters estimate, $4^K$ observed divergence array and merge matrix describing the tree topology.
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.