seroprevalence: Compute the seroprevalence

View source: R/seroprevalence.R

seroprevalenceR Documentation

Compute the seroprevalence

Description

Compute the seroprevalence using an object of the class SeroData. If multiple category are defined, it will also compute the seroprevalence for each category.

Usage

seroprevalence(serodata)

Arguments

serodata

An object of the class SeroData.

Value

The mean and 95 % confidence interval of the seroprevalence

Author(s)

Nathanael Hoze nathanael.hoze@gmail.com

Examples


## 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)


nathoze/Rsero documentation built on Feb. 3, 2024, 9:58 p.m.