add.media: add.media

Description Usage Arguments Details Value Author(s) See Also

View source: R/ShedsHT.R

Description

For each theoretical person parameterized in the pd data frame, which is output from the select.people function, this function generates the exposure duration for each potential exposure medium.

Usage

1
add.media(n, media, pd)

Arguments

n

Number of persons.

media

List of the potential contact media for the model; output of the read.media.file function. Each is found in a specific microenvironment (micro).

pd

Data frame containing internally assigned demographic and physiological parameters for each theoretical person modeled in SHEDS.HT. Output of the select.people function

Details

To generate the exposure duration for each theoretical person, an array q of uniform random samples is generated with rows = n (per set, where set size is specified by the user in the Run input file) and columns = nrow(media) (the number of potential exposure media). An array called dur is created for the number of minutes on the activity diary in the relevant micro multiplied by the relevant probability of contact (as specified in the media input). The array consists of a row for each person and a column for each of the exposure media. The output is a data table containing the pd data frame and the dur array.

Value

pdm A data table containing the pd data frame of physiological and demographic parameters for each theoretical person, and the dur array, which specifies the duration of exposure to each potential exposure medium for each person in pd.

Author(s)

Kristin Isaacs, Graham Glen

See Also

select.people, read.media.file


HumanExposure/SHEDSDevel documentation built on Oct. 30, 2019, 6:49 p.m.