constantInTime.numeric: constantInTime.numeric function
Description
Create a constant-in-time temporalAtRisk object from a numeric object of length 1. The returned temporalAtRisk object is assumed to have
been scaled correctly by the user so that mu(t) = E(number of cases in a unit time interval).
Usage
## S3 method for class 'numeric':
constantInTime(obj, tlim, warn = TRUE, ...)
Arguments
obj
numeric constant
tlim
vector of length 2 giving time limits
warn
Issue a warning if the given temporal intensity treated is treated as 'known'?
...
additional arguments
Value
a function f(t) giving the (constant) temporal intensity at time t for integer t in the interval [tlim[1],tlim[2]] of class temporalAtRisk
Details
For further details of temporalAtRisk objects, see ?temporalAtRisk>