calculateLogLikCluster_transmission: calculate the contribution of a cluster to the log...

View source: R/households.R

calculateLogLikCluster_transmissionR Documentation

calculate the contribution of a cluster to the log likelihood, for the model of incubation and transmission

Description

calculate the contribution of a cluster to the log likelihood, for the model of incubation and transmission

Usage

calculateLogLikCluster_transmission(p, data)

Arguments

p

named vector of parameter values. Contains elements "m.incub", the mean incubation period;"beta", the transmission parameter; and "m.inf", the mean infectious period

data

data frame with a single row, containing the columns "time.onset.donor": the observed time of symptom onset for the donor; "recipient.infected": 1 if the recipient was infected, 0 if not; "time.infection.recipient": the inferred time at which the recipient was infected; "time.onset.recipient": the observed time of symptom onset for the recipient

Value

the contribution of the cluster to the log likelihood


c97sr/learnidd documentation built on Jan. 12, 2025, 4:24 p.m.