plot_risk: Plot Risk

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ares.r

Description

Plot estimated risks

Usage

1
plot_risk(x, labels = rownames(x), new = TRUE, graph.scale = FALSE, ...)

Arguments

x

an object of class risk or pdlm.risk output by estimate_risks

labels

a vector of alternate labels for exposures with the same dimension of risks. Default is the vector of rows names of x

new

if TRUE, a new graph window is opened

graph.scale

can be either a logical or a vector with the axis limits. If TRUE or a vector all the graphs will share the same y-axis scale

...

further options for stockplot

Details

This function will plot relative risks computed by estimate_risks. It is seldom called directly.

Value

This function does not return a value.

Author(s)

Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

References

Schwartz, J., Spix, C., Touloumi, G. et al. (1996) Methodological issues in studies of air pollution and daily counts of deaths or hospital admissions. J Epidemiol. Community Health 50 (suppl 1), S12–S18.

McGullagh, P., Nelder, J. A. (1989) Generalized linear models. Chapman and Hall.

Hastie, T., Tibshirani, R. (1990) Generalized additive models. 2 ed. Chapman and Hall.

See Also

plot,estimate_risks

Examples

1
2
3
4
5
6
7
8
data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
rr <- estimate_risks(m,c("pm10","so2"),digits=3,labels=c("PM10","SO2"),
	method="singlelag",lag.struc=list(l=0:2,ma=1:5))

plot(rr)

wjunger/ares documentation built on Dec. 23, 2021, 5:17 p.m.