posterior_linpred: Gives the posterior linear predictor for the reproduction...

Description Usage Arguments Value

View source: R/posterior_linpred.R

Description

Gives the posterior linear predictor for the reproduction numbers Will be extended for observations in future versions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
posterior_linpred(
  object,
  transform = FALSE,
  type = NULL,
  newdata = NULL,
  draws = NULL,
  fixed = TRUE,
  random = TRUE,
  autocor = TRUE,
  offset = TRUE,
  ...
)

Arguments

object

A fitted model object returned by epim. See epimodel-objects.

transform

If TRUE, transforms the predictor by the inverse link function. Defaults to FALSE.

type

If NULL, then gives posterior linear predictor for reproduction numbers. Otherwise gives the predictor for the specified observation type.

newdata

If provided, the original data used in object is overridden. Useful both for counterfactual and prediction analysis

draws

Number of posterior draws to use. Defaults to the number of parameter draws in the fitted model.

fixed

Include fixed effects. Defaults to TRUE.

random

Include random effects. Defaults to TRUE.

autocor

Include autocorrelation terms. Defaults to TRUE.

offset

Include offsets. Defaults to TRUE.

...

Not used.

Value

A list containing the parameter draws and associated groups and dates.


epidemia documentation built on Oct. 25, 2021, 9:09 a.m.