plot.modTempEff {modTempEff} | R Documentation |
Plots distributed lags curves from the modTempEff
fit.
## S3 method for class 'modTempEff': plot(x, which = c("cold", "heat"), new = TRUE, var.bayes = FALSE, add = FALSE, delta.rr = TRUE, level = 0.95, ...)
x |
object of class "modTempEff" . |
which |
Which DL curve should be plotted? for cold, heat or both of them (default). |
new |
logical indicating if a new device should be opened. |
var.bayes |
logical indicating if the 'Bayesian' rather than the frequentist standard errors should be employed to compute the pointwise confidence intervals to be plotted |
add |
an alias for new . |
delta.rr |
logical indicating if the DL curves should be plotted on the log scale or on the per cent change in relative risk, i.e. 100*(exp(.)-1). |
level |
the selected confidence level of the pointwise confidence intervals to be plotted |
... |
additional arguments.. |
Takes a fitted 'modTempEff' object produced by 'tempeff()' and plots the DL curves for cold and heat effect with relevant pointwise confidence intervals.
The function simply plots the required estimated DL curve.
Vito Muggeo
## Not run: #obj is an object returned by tempeff() #plots DL curves for cold and heat with 95 # using frequentist standard errors plot(obj) #plots the estimated DL curve only for heat with 90 # using bayesian standard errors plot(obj, "heat", var.bayes=TRUE, level=.90) ## End(Not run)