nb_log_likelihood_Rt_piece: Calculates negative-binomial log-likelhood within a single Rt...

View source: R/sampling.R

nb_log_likelihood_Rt_pieceR Documentation

Calculates negative-binomial log-likelhood within a single Rt piece

Description

Calculates negative-binomial log-likelhood within a single Rt piece

Usage

nb_log_likelihood_Rt_piece(Rt, kappa, w, onset_times, cases_df)

Arguments

Rt

an Rt value for the piece

kappa

overdispersion parameter

w

weights corresponding to the generation times

onset_times

the onset times corresponding to the piece

cases_df

a tibble with 'cases_true' as a column which has been ordered so that the latest onset times are at the bottom

Value

a log-likelihood of the piece


ben18785/incidenceinflation documentation built on Feb. 8, 2024, 2:36 a.m.