log_likelihood_cases: Returns log likelihood of the predicted number of cases given...

View source: R/RcppExports.R

log_likelihood_casesR Documentation

Returns log likelihood of the predicted number of cases given the data

Description

The model results in a prediction for the number of new cases in a certain age group and for a certain week. This function sum the log likelihood for the predicted cases for each week and age group given the data on reported Influenza Like Illnesses and confirmed samples.

Usage

log_likelihood_cases(epsilon, psi, predicted, population_size, ili_cases,
  ili_monitored, confirmed_positive, confirmed_samples, abs_err = 1e-05)

Arguments

epsilon

Parameter for the probability distribution by age group

psi

Parameter for the probability distribution

predicted

Number of cases predicted by your model for each week and age group

population_size

The total population size in the age groups

ili_cases

The number of Influenza Like Illness cases by week and age group

ili_monitored

The size of the population monitored for ILI by week and age group

confirmed_positive

The number of samples positive for the Influenza strain by week and age group

confirmed_samples

Number of samples tested for the Influenza strain by week and age group '

abs_err

Absolute error of the likelihood approximation. By default a value of 1e-5 is used, lower is more precise, but slower.


MJomaba/flu-evidence-synthesis documentation built on April 26, 2022, 11:12 p.m.