ic_filter.Rd
Select records from 'ic' objects based on region group, country, time, or vaccine.
ic_filter(X, region, country, time, vaccine) # S3 method for ic.df ic_filter(X, region, country, time, vaccine) # S3 method for icfit ic_filter(X, country, time, vaccine) # S3 method for iclist ic_filter(X, region, country, time, vaccine)
X | object of type |
---|---|
region | Character vector of regional groups to select. Not valid for
|
country | Character vector of country identifiers to select |
time | Vector of time points to select |
vaccine | Character vector of vaccine records to select, given by abbreviations (e.g. 'DTP1') |
A new object with type matching X
with the selected records.
For icfit
and iclist
objects, filtering will only
affect the posterior estimates and prediction (if present). When a
selection parameter is omitted, then all possible values will be selected.
Selection parameters which are not present in X
will be ignored.