twinSIR_cox: Identify Endemic Components in an Intensity Model

Description See Also Examples

Description

The special function cox marks terms in formulae of the functions twinSIR and simEpidata as endemic components, i.e. variables acting multiplicatively on the baseline infection intensity.

Technically, this function is implemented as function(x) {x} and defined as “special” in terms.formula.

See Also

Usage in formulae of functions twinSIR and simEpidata.

Examples

1
2
3
4
5
6
# a hypothetic call of the fitting function 'twinSIR' with two epidemic and
# two endemic covariates:
## Not run: 
twinSIR( ~ B1 + B2 + cox(vaccination) + cox(size), data = myEpidata)

## End(Not run)

jimhester/surveillance documentation built on May 19, 2019, 10:33 a.m.