get_id_by_location: Get ID of individuals by location

View source: R/sampling_utils.R

get_id_by_locationR Documentation

Get ID of individuals by location

Description

This function will get the ID of infected individuals from specific location (region or global) at the time of seroconversion.

Usage

get_id_by_location(tm, location)

Arguments

tm

Transmission matrix of who transmitted to whom.

location

Character of location at time of transmission to get IDs to sample from. Location can take the value of "region" or "global".

Details

Note that location will be those at the time of seroconvertion.

Value

Vector of IDs from location of choice.


thednainus/HIVepisimAnalysis documentation built on Sept. 21, 2023, 7:32 a.m.