nllik_homog: Evaluate the approximate log-likelihood of a time-homogeneous...

Description Usage Arguments Value

View source: R/homogeneous.R

Description

The likelihood approximation is based on an approximation of the process by a second-order equivalent process with complete reporting.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
nllik_homog(
  observed,
  nu,
  phi,
  kappa,
  psi,
  q,
  max_lag = 5,
  return_contributions = FALSE
)

Arguments

observed

a time series of counts (numeric vector)

nu, phi, kappa, psi

the model parameters (scalars)

q

the assumed reporting probability

max_lag

in evaluation of likelihood only lags up to max_lag are taken into account

return_contributions

shall the log-likelihood contributions of each time point be returned (as vector)?

Value

The log-likelihood as scalar or (if return_contributions == TRUE) the vector of log-likelihood contributions.


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