com_sample_trans: Randomly sample a transmission tibble based on a list of...

Description Usage Arguments Value Examples

Description

Each run we will ramdomly choose one of the possible transmission pairs from data with a donor ENROLLID provided in the list and evalute the probability of transmission. Smoothing every 2

Usage

1
com_sample_trans(data, runs, SPECIDs, test = F)

Arguments

data

data frame on which to sample. contains freq1 and freq2

runs

The number of times to sample

SPECIDs

A list of SPECIDs that can be used as donors

test

A boolean switch. If activatve returns a list of 2 tibbles. The first is the last sample_data tibble the second is the normal output

Value

a data frame with columns freq1, trial, and probability of transmission.

Examples

1
2

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.