sample_laplace_log_incidence_poisson {incidental}R Documentation

Generate Laplace samples of incidence

Description

This function generates Laplace samples of posterior distribution for a vector of reported incidence.

Usage

sample_laplace_log_incidence_poisson(
  beta_hat,
  beta_cov,
  reported,
  Q,
  num_samps_per_ar = 10
)

Arguments

beta_hat

Maximum likelihood solution for beta parameter.

beta_cov

Covariance of objective solution (either Fisher information or Hessian inverse).

reported

An integer vector of reported cases.

Q

Spline basis matrix.

num_samps_per_ar

Number of Laplace samples to return for each AR path.

Value

A matrix of 'num_samps_per_ar' log incidence curve samples from laplace approximation of distribution.


[Package incidental version 0.1 Index]