llik_tv: Evaluate the (approximate) likelihood of an underreported...

Description Usage Arguments

View source: R/general.R

Description

Compute the fitted values of a fully observed process, which can also serve as an approximation to those of an underreported process which is approximated by the given fully observed process.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
llik_tv(
  observed,
  lambda1,
  nu,
  phi,
  kappa,
  psi,
  q,
  return_contributions = FALSE,
  log = TRUE
)

Arguments

observed

The observed sequence of counts

lambda1

initial value for lambda

nu, phi, kappa, psi

the time-varying parameters of the model (kappa is also allowed to be time-varying here); vectors of equal length

q

the assumed reporting probability (potentially time-varying)

return_contributions

logical: should the likelihood contributions of the different weeks be returned?

log

logical: return log-likelihood?


jbracher/hhh4underreporting documentation built on July 21, 2020, 2:08 p.m.