print_risk: Print Risk

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

View source: R/ares.r

Description

Print a risk object nicely formatted

Usage

1
print_risk(x, digits = getOption("digits"), ...)

Arguments

x

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

digits

an integer indicating the number of decimal places to print. Default is given by the system option digits

...

further options to pass to print

Details

This function prints out the risk tables nicely formatted.

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

print,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))

print(rr)

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