View source: R/combine_surveys.R
combine_surveys | R Documentation |
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.
combine_surveys(SeroData1, SeroData2)
SeroData1 |
A first |
SeroData2 |
A second |
A SeroData
object.
Nathanael Hoze nathanael.hoze@gmail.com
SeroData
Define the format of the serological data.
subset
Extract a smaller subset of a SeroData
object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.