#' Conditioning the birth-death process on a certain time and the survival of the process reparametrised.
#'
#' @description Calculating the probability of conditioning the birth-death process on the time \eqn{t} and its survival to present day parametrised on \eqn{y*\lambda} and \eqn{r}.
#'
#' @param t Numeric. The specific time in the past in millions of years. Typically, the age of the clade is used to condition on the start of the process.
#' @param yl Numeric. The sampling probability times the speciation rate: \eqn{y*\lambda}.
#' @param r Numeric. The net diversification rate: \eqn{\lambda - \mu}. The units are in events/lineages/millions years.
#'
#' @return The probability of the birth-death process starting with one lineage at time \eqn{t} and surviving at present parametrised on \eqn{y*\lambda} and \eqn{r}.
#'
#' @author Sophia Lambert
#'
#' @export
#'
#' @seealso \code{\link{likelihood_bdRho}}, \code{\link{fitMCMC_bdRho}}
Pcond_reparam <- function(t, yl, r){
1/
(1+
yl/r*(exp(r*t)-1))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.