numstates
by numstates^2
to a
square transition matrix of dimensions numstates
by numstates
, representing the probability of a
transition when only one daughter survives in the tree.
make_relprob_nummatrix_sp1(probmat, spPmat, split = "\|")
newmat
A new square matrix.
Goldberg_etal_2011_GeoSSE
Goldberg_Igic_2012_ClaSSE
Matzke_2012_IBS
ReeSmith2008
make_relprob_matrix_bi
,
make_relprob_txtmatrix_sp1
,
paste_rows_without_zeros
testval=1
spmat = make_relprob_matrix_bi(states_list=list("_", c("A"),
c("B"), c("C"), c("A","B"), c("B","C"), c("A","C"), c("A","B","C")),
split_ABC=FALSE, splitval="", code_for_overlapping_subsets=NA, printwarn=1)
spmat
spPmat = symbolic_to_relprob_matrix_sp(spmat, cellsplit="\\\\+",
mergesym="*", ys=1, j=0, v=1, maxent_constraint_01=0.0001,
maxent_constraint_01v=0.0001, max_numareas=3)
spPmat
newmat = make_relprob_nummatrix_sp1(probmat=spmat, spPmat=spPmat, split="\\\\|")
newmat
Run the code above in your browser using DataLab