ext: Identify rows corresponding to external contact intervals.

Description Usage Arguments Details Value

View source: R/utility.R

Description

Specifies indicator variable for rows containing an external contact interval (from the community or environment to a susceptible individual) in model formula.

Usage

1
ext(x)

Arguments

ex

A binary variable such that as.numeric(ex) will produce a one for each external row and a zero for each internal row

Details

If ex is an indicator variable for external infection, then exog(ex) can be added to the model formula to allow separate handling of internal and external contact intervals.

Value

A factor with two levels


ekenah/transtat documentation built on Nov. 11, 2021, 3:12 p.m.