Description Usage Arguments Value
This function generates Laplace samples of posterior distribution for a vector of reported incidence.
1 2 3 4 5 6 7 | sample_laplace_log_incidence_poisson(
beta_hat,
beta_cov,
reported,
Q,
num_samps_per_ar = 10
)
|
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. |
A matrix of 'num_samps_per_ar' log incidence curve samples from laplace approximation of distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.