intensity.function {SimVitD} | R Documentation |
Generates intensity function, function with time as sole argument.
intensity.function( summer.rate = 0, winter.rate = 1, flu = TRUE )
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 |
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
.
Rebecca Mangan and Jason Wyse