intensity.function {SimVitD} | R Documentation |
Generate an intensity function
Description
Generates intensity function, function with time as sole argument.
Usage
intensity.function( summer.rate = 0, winter.rate = 1, flu = TRUE )
Arguments
summer.rate |
Value bwteeen 0 and 1, the rate at which exposures occur in summer months. |
winter.rate |
Value between 0 and 1, the rate at which exposures occur in winter months. |
flu |
If |
Value
intensity.function
returns a function that takes
time as sole argument and returns value between 0 and 1,
the returned function acts as
intensity.func
for input to exposure.levels
.
Author(s)
Rebecca Mangan and Jason Wyse
[Package SimVitD version 1.0.3 Index]