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

View source: R/plot.Mort1Dsmooth.R

It produces a plot where the x-axis is the predictor of the given
`Mort1Dsmooth`

object and the y-axis is both actual and
fitted log-rates, or actual and fitted counts.

1 2 |

`x` |
an object of class "Mort1Dsmooth", usually, a result of
a call to |

`Type` |
the type of plot which should be returned. The
alternatives are: |

`...` |
other plotting parameters passed to |

The function provides a simple tool for checking the outcomes of a
`Mort1Dsmooth`

object. In a Poisson setting, one would commonly
look at rates in log-scale, but actual and fitted counts can be
plotted too.

Plotting parameters are given and cannot be changed.

None. Function produces a plot

Carlo G Camarda

`Mort1Dsmooth`

for computing
`Mort1Dsmooth.object`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
## selected data
years <- 1930:2006
death <- selectHMDdata("Denmark", "Deaths", "Females",
ages = 60, years = years)
exposure <- selectHMDdata("Denmark", "Exposures", "Females",
ages = 60, years = years)
## fit
fit <- Mort1Dsmooth(x=years, y=death, offset=log(exposure),
method=3, lambda=100)
## plotting actual and fitted data
par(mfrow=c(1,2))
plot(fit)
plot(fit, "deaths")
par(mfrow=c(1,1))
``` |

MortalitySmooth documentation built on May 29, 2017, 7:11 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.