create_sample_mask: Create sample mask

View source: R/helpers.R

create_sample_maskR Documentation

Create sample mask

Description

Converts a data frame of individual sampling times to give the index of the last infection that individual could have had (as we can't observe anything after the last observation)

Usage

create_sample_mask(antibody_data, possible_exposure_times)

Arguments

antibody_data

the data frame of antibody data. See example_antibody_data

possible_exposure_times

the vector of times that individuals can be infected

Value

a vector giving the last index of possible_exposure_times that an individual can be infected


adamkucharski/serosolver documentation built on April 13, 2024, 10:24 a.m.