get_n_by_origin: Get total number of individuals in network by region

View source: R/sampling_utils.R

get_n_by_originR Documentation

Get total number of individuals in network by region

Description

Get the total number of individuals in the final network by region of choice.

Usage

get_n_by_origin(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

Integer of the total number of individuals in location of choice. Note that the function will return the total number of individual at location of choice at time of seroconversion.


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