View source: R/exposure.levels.R
exposure.levels | R Documentation |
exposure.levels
creates a list of the exposures to an infectious agent and the status of vitamin D at the time of each exposure for each participant. The exposure times are simulated from a non homogeneous poisson process.
exposure.levels( x, rate, intensity.func = intensity.function(), start = 0, end = 1 )
x |
An object of class |
rate |
Expected number of exposures per week, the rate at which exposures occur in an equivalent homogeneous Poisson process. |
intensity.func |
A function that takes time as sole argument and returns value between 0 and 1, scaling the rate argument. For example, exposures may be higher at certain times for seasonal infections. |
start |
Start time of the study in units of years. |
end |
End time of study in units of years. |
exposure.levels
returns an object of class exposure.levels
that is a list.
The list has the following slots.
exposures |
The exposure times to infection for each participant. |
levels |
The vitamin D staus levels for each participant at the time of exposure to infection. |
Rebecca Mangan and Jason Wyse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.