Learn R Programming

SimVitD (version 1.0.3)

intensity.function: 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 )

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.

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 TRUE define winter months as flu season (Sep-May in Northern Hemisphere, Mar-Nov in Southern Hemisphere). If FALSE have constant exposure rate all year.

Author

Rebecca Mangan and Jason Wyse