Skip to content

Commit

Permalink
fix call for free rate model
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausVigo committed Oct 11, 2024
1 parent 7c97b63 commit 215833e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/phylo.R
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,8 @@ optim.pml <- function(object, optNni = FALSE, optBf = FALSE, optQ = FALSE,
}
class(object) <- "pml"
extras <- pairlist(bf = bf, Q = Q, inv = inv, shape = shape, rate = rate,
model=model)[c(optBf, optQ, optInv, optGamma, optRate, optModel)]
model=model, g=g, w=w)[c(optBf, optQ, optInv, optGamma, optRate, optModel,
optFreeRate, optFreeRate)]
if (length(extras)) {
existing <- !is.na(match(names(extras), names(call)))
for (a in names(extras)[existing]) call[[a]] <- extras[[a]]
Expand Down

0 comments on commit 215833e

Please sign in to comment.