plot.progdismodel {changeLOS}R Documentation

Plot function for objects of class 'progdismodel'

Description

Draws three plots for an object of class 'progdismodel' in the active graphics devices or to the passed postscript files.

Usage

## S3 method for class 'progdismodel':
plot(x,
                  file1, file2, file3, 
                  lwd=2, cex=1.2,
                  lty1=1, lty2=1, lty3=1,
                  color1=4, color2=1, color3=2, ... )

Arguments

x an object of the class 'aj'
file1 ps file name for the first plot (mortality)
file2 ps file name for the second plot(attributable mortality)
file3 ps file name for the third plot (population attributable mortality)
lwd the line widths
cex character expansion factor
lty1 the line type of line 1 of the first plot
lty2 the line type of line 2 of the second plot
lty3 the line type of line 3 of the third plot
color1 the color of line 1 of the first plot
color2 the color of line 2 of the second plot
color3 the color of line 3 of the third plot
... other graphical arguments

Details

The first plot shows P( death, t ), P(death | risk factor absent,t) and P(death | risk factor present,t): mortality.

The second plot shows P(death | risk factor present,t) - P(death | risk factor absent,t): attributable mortality.

The third plot shows (P(death,t) - P(death | risk factor absent,t))/P(death,t): population attributable mortality.

Author(s)

Matthias Wangler mw@imbi.uni-freiburg.de

Examples

data(los.data)

p <- prepare.progdismodel(data=los.data)

pdm <- progdismodel(p$model, p$observ)

plot(pdm)

[Package changeLOS version 2.0.9-2 Index]