This package implements in C++/Rcpp various cladogenesis-related calculations that are slow in pure R. These include the calculation of the probability of various scenarios for the inheritance of geographic range at the divergence events on a phylogenetic tree, and other calculations necessary for models which are not continuous-time markov chains (CTMC), but where change instead occurs instantaneously at speciation events. Typically these models must assess the probability of every possible combination of (ancestor state, left descendent state, right descendent state). This means that there are up to (# of states)^3 combinations to investigate, and in biogeographical models, there can easily be hundreds of states, so calculation time becomes an issue. C++ implementation plus clever tricks (many combinations can be eliminated a priori) can greatly speed the computation time over naive R implementations. CITATION INFO: This package is the result of my Ph.D. research, please cite the package if you use it! Type: citation(package="cladoRcpp") to get the citation information.

Install the latest version of this package by entering the following in R:

`install.packages("cladoRcpp")`

Author | Nicholas J. Matzke [aut, cre, cph] |

Date of publication | 2014-05-18 07:22:44 |

Maintainer | Nicholas J. Matzke <matzke@berkeley.edu> |

License | GPL (>= 2) |

Version | 0.14.4 |

http://phylo.wikidot.com/biogeobears |

**areas_list_to_states_list_old:** Convert a list of areas to a list of geographic ranges...

**cladoRcpp-package:** Phylogenetic probability calculations using Rcpp

**numstates_from_numareas:** Calculate the number of states, given a certain number of...

**rcpp_areas_list_to_states_list:** Make a list of 0-based indices of possible combinations of...

**rcpp_calc_anclikes_sp:** Calculate probability of ancestral states below a speciation...

**rcpp_calc_anclikes_sp_COOprobs:** Faster version of rcpp_calc_anclikes_sp

**rcpp_calc_anclikes_sp_COOweights_faster:** Even faster version of rcpp_calc_anclikes_sp

**rcpp_calc_anclikes_sp_prebyte:** Calculate probability of ancestral states below a speciation...

**rcpp_calc_anclikes_sp_rowsums:** Calculate the number of cladogenesis events of nonzero...

**rcpp_calc_anclikes_sp_using_COOprobs:** Calculate ancestral likelihoods given a COO-like probability...

**rcpp_calc_rowsums_for_COOweights_columnar:** Calculate sum of weights for each ancestral state

**rcpp_calc_splitlikes_using_COOweights_columnar:** Calculate the split likelihoods using 'COO_weights_columnar'

**Rcpp_combn_zerostart:** Get all the combinations of descendent state pairs, in...

**rcpp_convolve:** Run C++ version of convolve(x,y, conj=TRUE, type="open")

**rcpp_mult2probvect:** Get the product of multiplying each pair of values in a...

**rcpp_states_list_to_DEmat:** C++ conversion of a states list to a dispersal-extinction...

**strsplit3:** String splitting shortcut

areas_list_to_states_list_old | Man page |

cladoRcpp | Man page |

cladoRcpp-package | Man page |

numstates_from_numareas | Man page |

rcpp_areas_list_to_states_list | Man page |

rcpp_calc_anclikes_sp | Man page |

rcpp_calc_anclikes_sp_COOprobs | Man page |

rcpp_calc_anclikes_sp_COOweights_faster | Man page |

rcpp_calc_anclikes_sp_prebyte | Man page |

rcpp_calc_anclikes_sp_rowsums | Man page |

rcpp_calc_anclikes_sp_using_COOprobs | Man page |

rcpp_calc_rowsums_for_COOweights_columnar | Man page |

rcpp_calc_splitlikes_using_COOweights_columnar | Man page |

Rcpp_combn_zerostart | Man page |

rcpp_convolve | Man page |

rcpp_mult2probvect | Man page |

rcpp_states_list_to_DEmat | Man page |

strsplit3 | Man page |

inst

inst/REFERENCES.bib

src

src/calc_anclikes_sp.cpp

src/basics.h

src/calc_anclikes_sp.h

src/basics.cpp

NAMESPACE

NEWS

R

R/cladoRcpp.R
R/cladoRcpp-package.R
MD5

DESCRIPTION

man

man/rcpp_calc_anclikes_sp_COOprobs.Rd
man/rcpp_mult2probvect.Rd
man/Rcpp_combn_zerostart.Rd
man/strsplit3.Rd
man/cladoRcpp-package.Rd
man/rcpp_calc_rowsums_for_COOweights_columnar.Rd
man/areas_list_to_states_list_old.Rd
man/rcpp_areas_list_to_states_list.Rd
man/rcpp_states_list_to_DEmat.Rd
man/rcpp_calc_anclikes_sp_COOweights_faster.Rd
man/rcpp_calc_anclikes_sp.Rd
man/rcpp_calc_splitlikes_using_COOweights_columnar.Rd
man/numstates_from_numareas.Rd
man/rcpp_convolve.Rd
man/rcpp_calc_anclikes_sp_prebyte.Rd
man/rcpp_calc_anclikes_sp_using_COOprobs.Rd
man/rcpp_calc_anclikes_sp_rowsums.Rd
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.