A simple utility function for organizing parameters from diversitree to be in the right format for marginRecon function.
marginRecon
BisseToHisse(lambda, mu, q01, q10)
a vector containing the parameter estimates for lambda0 and lambda1 from diversitree.
diversitree
a vector containing the parameter estimates for mu0 and mu1 from diversitree.
the estimate of transition rate from state 0 to state 1 from diversitree.
the estimate of transition rate from state 1 to state 0 from diversitree.
A simple vector providing the proper format for BiSSE parameters and defaults in HiSSE for use in the marginRecon function.
# NOT RUN { bisse.pars <- c(0.1, 0.2, 0.03, 0.03, 0.01, 0.01) hisse.par.vec <- BisseToHisse(lambda=c(0.1,0.2), mu=c(0.03,0.03), q01=0.01, q10=0.01) # }
Run the code above in your browser using DataCamp Workspace