-
Notifications
You must be signed in to change notification settings - Fork 0
/
BinaryPoissonModelLogLikCpp.Rd
33 lines (27 loc) · 1.01 KB
/
BinaryPoissonModelLogLikCpp.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BinaryPoissonModel.R
\name{BinaryPoissonModelLogLikCpp}
\alias{BinaryPoissonModelLogLikCpp}
\title{Calculate the likelihood of a Poisson binary trait substituion model,
given a tree and binary trait data at the tips.}
\usage{
BinaryPoissonModelLogLikCpp(x, tree, x0, q01, q10,
cppObject = NewBinaryPoissonModelCppObject(x, tree),
mode = getOption("SPLITT.postorder.mode", 0))
}
\arguments{
\item{x}{an integer vector of size N, where N is the number of tips in tree.}
\item{tree}{a phylo object}
\item{x0}{model parameters.}
\item{q01}{model parameters.}
\item{q10}{model parameters.}
\item{cppObject}{a previously created object returned by \code{\link{NewBinaryPoissonModelCppObject}}}
\item{mode}{an integer denoting the mode for traversing the tree, i.e. serial vs parallel.}
}
\value{
the likelihood value.
}
\description{
Calculate the likelihood of a Poisson binary trait substituion model,
given a tree and binary trait data at the tips.
}