R: Extract DL coefficients from a 'modTempEff' object
coef.modTempEff
R Documentation
Extract DL coefficients from a ‘modTempEff’ object
Description
The function extracts the estimated coefficients of the DL curves for cold and/or
heat effect.
Usage
## S3 method for class 'modTempEff'
coef(object, which = c("cold", "heat"), L, ...)
Arguments
object
the "modTempEff" object returned by tempeff.
which
which DL curve should be returned?
L
the number of DL coefficients required. 'L+1' coefficients for lags 0 to L are returned.
...
additional arguments (ignored).
Details
The resulting estimates, returned as a matrix, are DL coefficients for the cold and/or the heat effect. Each coefficient
at specific lag represents the log relative risk (of mortality) for one-unit increase in cold (or heat) values.
Value
A matrix with DL coefficients. Each row corresponds to a specific lag.
Author(s)
Vito Muggeo
See Also
tempeff
Examples
## Not run:
#continues from ?tempeff
coef(o1,"heat",L=7) #log RR for heat corresponding to lag 0 to 7
## End(Not run)