Defines functions make_asr_marginal_dtlik_t

make_asr_marginal_dtlik_t <- function(lik, ...) {
  e <- environment(lik)
  cache <- get.cache(lik)
  do.asr <- make.do.asr.marginal(e$all_branches, e$rootfunc)
  preset <- NULL

  ## Slightly different prototypes will be needed for different
  ## models, I guess.  A mkn model doesn't want condition.surv.  In
  ## contrast with other models, no parameter checking here (happens
  ## automatically)
  asr <- function(pars, nodes=NULL, condition.surv=TRUE,
                  root=ROOT.FLAT, root.p=NULL)
    do.asr(pars, nodes, preset, # below here extra args to root func
           condition.surv, root, root.p, intermediates=FALSE)


make.asr.marginal.bisse.t <- make_asr_marginal_dtlik_t
make.asr.marginal.musse.t <- make_asr_marginal_dtlik_t

Try the diversitree package in your browser

Any scripts or data that you put into this service are public.

diversitree documentation built on May 29, 2024, 4:38 a.m.