cluster_like_smear: Calculate the likelihood for a cluster of this size

Description Usage Arguments Value

View source: R/likelihood.R

Description

Calculate the likelihood for a cluster of this size

Usage

1
cluster_like_smear(par, cluster_df, n, n_pos)

Arguments

par

vector of parameters "beta_0" and "beta_1"

cluster_df

data frame with the following columns

n_inf

number this person infected

smear

-1 or +1

n

number in cluster

n_pos

number of positive smears

Value

likelihood of cluster (single number)


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