View source: R/seroprevalence.R
seroprevalence | R Documentation |
Compute the seroprevalence using an object of the class SeroData
. If multiple category
are defined, it will also compute the seroprevalence for each category.
seroprevalence(serodata)
serodata |
An object of the class |
The mean and 95 % confidence interval of the seroprevalence
Nathanael Hoze nathanael.hoze@gmail.com
## A very simple example of a serological survey with three individuals:
data = SeroData(age_at_sampling = c(10,32,24), Y=c(0,1,1), max_age = 50, age_class = 1, sampling_year = 2017)
seroprevalence(serodata = data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.