Arguments
x
Vector of speciation times in the phylogeny. Time is measured increasing going into the past with the present being time 0. x can be obtained from a phylogenetic tree using getx(TREE).
minK
Minimal value of K (when discrete=TRUE). Default is minK = (number of species).
maxK
Maximal value of K (when discrete=TRUE). Default is maxK = 1.5(number of species).
discrete
If discrete=TRUE, the likelihood function is maximized with K being an integer and the minimal size being minK and the maximal size being maxK.
continuous
If continuous=TRUE, the likelihood function is maximized with K being a continuous parameter. The function subplex is used for optimization and sometimes gets stuck at a non-optimal K. Thus I always recommend to also calculate with discrete=TRUE.
lambdainit
Initial lambda value for optimization when K is continuous (default is 2).
muinit
Initial mu value for optimization when K is continuous (default is 1).
Kinit
Initial K value for optimization when K is continuous (default is (number of species)+1).