combine_surveys: Combine serological surveys

View source: R/combine_surveys.R

combine_surveysR Documentation

Combine serological surveys

Description

The function combine_surveys creates a new object of the class SeroData from two SeroData objects. In particular, it allows combining serological surveys sampled at different dates.

Usage

combine_surveys(SeroData1, SeroData2)

Arguments

SeroData1

A first SeroData object.

SeroData2

A second SeroData object.

Value

A SeroData object.

Author(s)

Nathanael Hoze nathanael.hoze@gmail.com

See Also

SeroData Define the format of the serological data.

subset Extract a smaller subset of a SeroData object.

Examples

 # Combine two simulated surveys, one acquired in 2015, with one-year age categories, 
 # and another one acquired in 1995 with 10-year age categories. 
 Years <- c(1976,1992)
 FOI <- c(0.2,0.3)
 data1 <- simulate_SeroData(sampling_year = 2015, epidemic_years = Years, foi = FOI)
 data2 <- simulate_SeroData(sampling_year = 1995,age_class=10, epidemic_years = Years, foi = FOI)     
 data <- combine_surveys(data1,data2)             

nathoze/Rsero documentation built on June 28, 2024, 10:22 a.m.