loglike_clust_cond: Calculate the log likelihood of a cluster conditioned on size...

Description Usage Arguments Value

View source: R/loglike_faster.R

Description

Calculate the log likelihood of a cluster conditioned on size and smear pos. num

Usage

1
loglike_clust_cond(p_plus, p_neg, clust_df)

Arguments

p_plus

probability of smear pos

p_neg

probability of smear neg

clust_df

data frame with the following columns

i_pos

number of transmission from a smear positive person

n_pos

number of positive smears

n

cluster size

Value

log likelihood summed over the clusters


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