mcmMk should set likelihood to "fitMk" when data input is matrix
rdiaz02 opened this issue · 2 comments
rdiaz02 commented
Currently, if data input is matrix and geiger is installed, mcmcMk
fails. This is the error
likelihood="fitDiscrete" doesn't work for data input as matrix.
Setting likelihood method to "fitMk".
Error in LIK(makeq(Q, index.matrix), root = "given", root.p = pi) :
could not find function "LIK"
It seems that the solution is to have, right after line 56
Line 56 in 544c3c5
likelihood <- "fitMk"
as is done in line 52 Line 52 in 544c3c5
Right now, however, in line 121
Line 121 in 544c3c5
fitDiscrete
and that assignment is made because, not having set likelihood <- "fitMk"
, we still have likelihood == fitDiscrete
.
P.S. I can make a pull request with this one-line change if deemed appropriate.
liamrevell commented
Fixed. Will push shortly.
rdiaz02 commented
(Oooops, forgot to say) Thanks!