Learn R Programming

secsse (version 3.0.2)

Several Examined and Concealed States-Dependent Speciation and Extinction

Description

Simultaneously infers state-dependent diversification across two or more states of a single or multiple traits while accounting for the role of a possible concealed trait. See Herrera-Alsina et al. (2019) .

Copy Link

Version

Install

install.packages('secsse')

Monthly Downloads

684

Version

3.0.2

License

GPL (>= 3) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Rampal Etienne

Last Published

October 21st, 2023

Functions in secsse (3.0.2)

cla_secsse_loglik

Likelihood for SecSSE model, using Rcpp Loglikelihood calculation for the cla_SecSSE model given a set of parameters and data using Rcpp
cla_id_paramPos

Parameter structure setting for cla_secsse It sets the parameters (speciation, extinction and transition) IDs. Needed for ML calculation with cladogenetic options (cla_secsse_ml)
create_lambda_list

Helper function to automatically create lambda matrices, based on input
plot_state_exact

Plot the local probability along a tree
cla_secsse_ml_func_def_pars

Maximum likehood estimation for (SecSSE) with parameter as complex functions. Cladogenetic version
cla_secsse_ml

Maximum likehood estimation for (SecSSE)
phylo_vignette

A phylogenetic reconstuction to run the vignette
expand_q_matrix

Function to expand an existing q_matrix to a number of concealed states
extract_par_vals

Extract parameter values out of the result of a maximum likelihood inference run
id_paramPos

Parameter structure setting Sets the parameters (speciation, extinction and transition) ids. Needed for ML calculation (secsse_ml()).
fill_in

Helper function to enter parameter value on their right place
create_default_shift_matrix

Helper function to create a default shift_matrix list
create_default_lambda_transition_matrix

Helper function to create a default lambda list
create_mu_vector

Generate mus vector
q_doubletrans

Basic Qmatrix Sets a Q matrix where double transitions are not allowed
sortingtraits

Data checking and trait sorting In preparation for likelihood calculation, it orders trait data according the tree tips
prepare_full_lambdas

Prepares the entire set of lambda matrices for cla_secsse. It provides the set of matrices containing all the speciation rates
traits

A table with trait info to run the vignette
secsse_sim

Function to simulate a tree, conditional on observing all states.
secsse_loglik

Likelihood for SecSSE model Loglikelihood calculation for the SecSSE model given a set of parameters and data
secsse-package

secsse: Several Examined and Concealed States-Dependent Speciation and Extinction
secsse_ml_func_def_pars

Maximum likehood estimation for (SecSSE) with parameter as complex functions.
event_times

Event times of a (possibly non-ultrametric) phylogenetic tree
secsse_loglik_eval

Likelihood for SecSSE model Logikelihood calculation for the SecSSE model given a set of parameters and data, returning also the likelihoods along the branches
example_phy_GeoSSE

A phylogeny with traits at the tips
secsse_ml

Maximum likehood estimation for (SecSSE)
create_q_matrix

Helper function to neatly setup a Q matrix, without transitions to concealed states (only observed transitions shown)
default_params_doc

Default parameter documentation