loglike_all_clusts: Calculate the log likelihood for data

Description Usage Arguments Value

View source: R/likelihood.R

Description

Calculate the log likelihood for data

Usage

1
loglike_all_clusts(par, n_vec, n_pos_vec, sampled_trees, return_neg = FALSE)

Arguments

par

vector of parameters "beta_0" and "beta_1"

sampled_trees

output from simulate_many_cond_bp where all n and n_pos are the same for each cluster

return_neg

If TRUE, return the negative log like.

n

number in cluster

n_pos

number of positive smears

Value

likelihood of 'average' of cluster with given n and n_pos (single number)


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.