get_n_alive: Get number alive

View source: R/helpers.R

get_n_aliveR Documentation

Get number alive

Description

Given the antibody_data data frame, calculates the number that are alive (alive to be infected, that is) for each time in times

Usage

get_n_alive(antibody_data, times)

Arguments

antibody_data

the data frame of titre data. See example_antibody_data

times

the vector of times to calculate number alive for

Value

a vector giving the number alive in each time point

See Also

Other get_summary: get_DOBs(), get_n_alive_group()

Examples

data(example_antibody_data)
data(example_antigenic_map)
times <- unique(example_antigenic_map$inf_times)
get_n_alive(example_antibody_data, times)

seroanalytics/serosolver documentation built on Dec. 14, 2024, 5:33 a.m.